Go to file
Jason Merrill 37a7519a24 Fix lookup of initialized captures in unevaluated context.
* cp-tree.h (DECL_NORMAL_CAPTURE_P): New.
	* name-lookup.c (qualify_lookup): Check it.
	* parser.c (cp_parser_lambda_introducer): Pass explicit_init_p
	to add_capture.
	* semantics.c (add_capture): Set DECL_NORMAL_CAPTURE_P
	on captures without explicit init.
	(add_default_capture): Pass explicit_init_p.

	Fix capture by copy of types with explicit copy constructor.
	* cp-tree.h (TARGET_EXPR_DIRECT_INIT_P): New.
	(DIRECT_INIT_EXPR_P): New.
	* typeck.c (convert_for_initialization): Just return if
	DIRECT_INIT_EXPR_P.
	* parser.c (cp_parser_lambda_introducer): Use
	TARGET_EXPR_DIRECT_INIT_P for normal captures.

From-SVN: r152500
2009-10-06 18:14:01 -04:00
boehm-gc
config
contrib Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
fixincludes
gcc Fix lookup of initialized captures in unevaluated context. 2009-10-06 18:14:01 -04:00
gnattools
include Fix a changelog 2009-10-06 19:27:01 +00:00
INSTALL
intl
libada
libcpp
libdecnumber
libffi
libgcc
libgfortran re PR libfortran/35862 ([F2003] Implement new rounding modes for run time) 2009-10-06 03:08:20 +00:00
libgomp
libiberty
libjava
libmudflap
libobjc
libssp
libstdc++-v3 *: Regenerate. 2009-10-05 18:04:44 +00:00
lto-plugin Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
maintainer-scripts Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
zlib
ABOUT-NLS
ChangeLog MAINTAINERS (Write After Approval): Add myself. 2009-10-05 21:09:59 +00:00
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
configure.ac Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
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 MAINTAINERS (Write After Approval): Add myself. 2009-10-05 21:09:59 +00:00
Makefile.def Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
Makefile.in Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
Makefile.tpl Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
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 file 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.html for how to report bugs usefully.