diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2014-10-06 16:13:41 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2014-10-06 16:13:41 +0000 |
commit | fbf833b776811b8ac22c79ee52ff46d578da755b (patch) | |
tree | fbc115d703cfe8f47d7e0b737588cd7b86e323a5 /gcc/tree-profile.c | |
parent | c4b64f5bcac6f7d5e1ae7d3026a3e228fb8adbbd (diff) | |
download | gcc-fbf833b776811b8ac22c79ee52ff46d578da755b.zip gcc-fbf833b776811b8ac22c79ee52ff46d578da755b.tar.gz gcc-fbf833b776811b8ac22c79ee52ff46d578da755b.tar.bz2 |
re PR c++/55250 ([C++0x] enum declarations within constexpr function are allowed, constexpr declarations are not)
/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.
From-SVN: r215954
Diffstat (limited to 'gcc/tree-profile.c')
0 files changed, 0 insertions, 0 deletions