This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50024] [C++0x] [4.7 Regression] crash when using braced initialization in member function of template


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]