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++/51621] [c++0x] [4.6/4.7 Regression] ICE with invalid constexpr and array class member


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51621

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-20 23:51:13 UTC ---
Author: paolo
Date: Tue Dec 20 23:51:09 2011
New Revision: 182556

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182556
Log:
/cp
2011-12-20  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51621
    * tree.c (diagnose_non_constexpr_vec_init): For value initialization
    pass void_type_node, not void_zero_node, to build_vec_init_elt.

/testsuite
2011-12-20  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51621
    * g++.dg/cpp0x/constexpr-ice5.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ice5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.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]