re PR c++/51553 (brace initialization and conversion operators)
authorJason Merrill <jason@redhat.com>
Mon, 19 Dec 2011 20:10:49 +0000 (15:10 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 19 Dec 2011 20:10:49 +0000 (15:10 -0500)
commit11c71a22d90023ec27f04b80e92838af8af692a2
tree1f29fff9643d552d01255418d102f7c4d9dc4eeb
parent00ef7059049de2761ed8c9db8839ce3566d09cb7
re PR c++/51553 (brace initialization and conversion operators)

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.

From-SVN: r182496
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/testsuite/g++.dg/cpp0x/initlist64.C