This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50024] [C++0x] [4.7 Regression] crash when using braced initialization in member function of template
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Aug 2011 16:03:06 +0000
- Subject: [Bug c++/50024] [C++0x] [4.7 Regression] crash when using braced initialization in member function of template
- Auto-submitted: auto-generated
- References: <bug-50024-4@http.gcc.gnu.org/bugzilla/>
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