re PR c++/50024 ([C++0x] [4.7 Regression] crash when using braced initialization...
authorJason Merrill <jason@redhat.com>
Tue, 23 Aug 2011 16:03:01 +0000 (12:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 23 Aug 2011 16:03:01 +0000 (12:03 -0400)
commit2787914706395bf7864bdc76491ada1b0a552cae
treecea100638ebf6cc422229ffd053565b0691337bb
parent7a74aa7f4a5666e5b50c30d57b00845337d51906
re PR c++/50024 ([C++0x] [4.7 Regression] crash when using braced initialization in member function of template)

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.

From-SVN: r177994
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-initlist5.C [new file with mode: 0644]