[Bug c++/55250] [C++0x] enum declarations within constexpr function are allowed, constexpr declarations are not
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 6 16:14:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55250
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Oct 6 16:13:41 2014
New Revision: 215954
URL: https://gcc.gnu.org/viewcvs?rev=215954&root=gcc&view=rev
Log:
/cp
2014-10-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55250
* semantics.c (check_constexpr_bind_expr_vars): New.
(check_constexpr_ctor_body, massage_constexpr_body): Use it.
(build_constexpr_constructor_member_initializers): Handle
BIND_EXPR in the main conditional.
/testsuite
2014-10-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55250
* g++.dg/cpp0x/constexpr-type-decl1.C: New.
* g++.dg/cpp0x/constexpr-type-def1.C: Likewise.
* g++.dg/cpp1y/constexpr-type-def1.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-type-decl1.C
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-type-def1.C
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-type-def1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list