[Bug c++/50930] [C++0x] Valid brace-or-equal-initializer of non-static data member rejected
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 2 21:28:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50930
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-02 21:25:00 UTC ---
Author: jason
Date: Wed Nov 2 21:24:56 2011
New Revision: 180802
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180802
Log:
PR c++/50930
* init.c (build_aggr_init): Don't set LOOKUP_ONLYCONVERTING
if the initializer has TARGET_EXPR_DIRECT_INIT_P.
(expand_default_init): An initializer with TARGET_EXPR_DIRECT_INIT_P
or TARGET_EXPR_LIST_INIT_P doesn't need more processing.
* tree.c (bot_manip): Propagate TARGET_EXPR_IMPLICIT_P,
TARGET_EXPR_LIST_INIT_P, TARGET_EXPR_DIRECT_INIT_P.
* call.c (convert_like_real): Set TARGET_EXPR_DIRECT_INIT_P
as appropriate on list-value-initialization.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-list2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/init.c
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list