[Bug c++/51553] brace initialization and conversion operators
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 19 20:17:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51553
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-19 20:11:00 UTC ---
Author: jason
Date: Mon Dec 19 20:10:49 2011
New Revision: 182496
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182496
Log:
PR c++/51553
* cp-tree.h (LOOKUP_LIST_INIT_CTOR): Rename from
LOOKUP_NO_COPY_CTOR_CONVERSION.
(add_list_candidates): Set it earlier.
(add_candidates): Don't check explicit on ctors when it's set.
(add_function_candidate): Check it even when LOOKUP_ONLYCONVERTING
is set.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/testsuite/g++.dg/cpp0x/initlist64.C
More information about the Gcc-bugs
mailing list