Go to file
Jason Merrill f44a8dd56f Reimplement handling of lambdas in templates.
* cp-tree.h (LAMBDA_FUNCTION_P): Check DECL_DECLARES_FUNCTION_P.
	* decl.c (start_preparsed_function): Call start_lambda_scope.
	(finish_function): Call finish_lambda_scope.
	* init.c (get_nsdmi): Call start/finish_lambda_scope.
	* lambda.c (start_lambda_scope): Only ignore VAR_DECL in a function.
	* parser.c (cp_parser_function_definition_after_declarator): Don't
	call start/finish_lambda_scope.
	* pt.c (retrieve_specialization): Ignore lambda functions in
	templates.
	(find_parameter_packs_r): Ignore capture proxies.  Look into
	lambdas.
	(check_for_bare_parameter_packs): Allow bare packs in lambdas.
	(tsubst_default_argument): Call start/finish_lambda_scope.
	(tsubst_function_decl): Handle lambda functions differently.
	(tsubst_template_decl): Likewise.
	(tsubst_expr) [DECL_EXPR]: Skip closure declarations and capture
	proxies.
	(tsubst_lambda_expr): Create a new closure rather than instantiate
	the one from the template.
	(tsubst_copy_and_build): Don't register a specialization of a pack.
	(regenerate_decl_from_template): Call start/finish_lambda_scope.
	(instantiate_decl): Remove special lambda function handling.
	* semantics.c (process_outer_var_ref): Remove special generic lambda
	handling.  Don't implicitly capture in a lambda in a template.  Look
	for an existing proxy.
	* class.c (current_nonlambda_class_type): Use decl_type_context.

From-SVN: r251433
2017-08-29 16:37:15 -04:00
config
contrib Added Python implementation of mklog. 2017-08-02 21:01:08 +00:00
fixincludes
gcc Reimplement handling of lambdas in templates. 2017-08-29 16:37:15 -04:00
gnattools re PR ada/81878 (--disable-bootstrap --enable-languages=ada fails) 2017-08-17 13:39:58 +00:00
gotools
include re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
INSTALL
intl
libada
libatomic
libbacktrace Add PR number. 2017-08-02 08:45:55 -04:00
libcc1
libcilkrts
libcpp Regenerate .pot files. 2017-08-04 23:21:23 +01:00
libdecnumber
libffi
libgcc Share mingw fset-stack-executable with cygwin 2017-08-07 11:40:08 +00:00
libgfortran re PR fortran/78387 (OpenMP segfault/stack size exceeded writing to internal file) 2017-08-28 03:42:47 +00:00
libgo runtime: fix lfstack for 64-bit AIX 2017-08-29 18:59:04 +00:00
libgomp re PR c/81687 (Compiler drops label in OpenMP region) 2017-08-10 02:33:20 +02:00
libhsail-rt
libiberty re PR lto/81968 (early lto debug objects make Solaris ld SEGV) 2017-08-28 13:14:28 +00:00
libitm
libmpx
libobjc
liboffloadmic
libquadmath
libsanitizer * include/system/sys/ptrace.h: New file. 2017-08-07 10:32:47 +02:00
libssp
libstdc++-v3 stl_list.h [!_GLIBCXX_INLINE_VERSION](_List_base<>::_S_distance): Remove. 2017-08-24 20:31:53 +00:00
libvtv
lto-plugin
maintainer-scripts
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ChangeLog
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.