[Bug c++/50024] [C++0x] [4.7 Regression] crash when using braced initialization in member function of template
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 23 16:04:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50024
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-23 16:03:06 UTC ---
Author: jason
Date: Tue Aug 23 16:03:01 2011
New Revision: 177994
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177994
Log:
PR c++/50024
* semantics.c (maybe_constant_value): Don't try to fold { }.
* pt.c (build_non_dependent_expr): Don't wrap { }.
* init.c (build_value_init): Allow scalar value-init in templates.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-initlist5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list