[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 20:37:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50024
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-23 20:12:28 UTC ---
Author: jason
Date: Tue Aug 23 20:12:22 2011
New Revision: 178012
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178012
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:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-initlist5.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/init.c
branches/gcc-4_6-branch/gcc/cp/pt.c
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list