/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Oct 2014 16:13:41 +0000 (16:13 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Oct 2014 16:13:41 +0000 (16:13 +0000)
commit8be31d902e67cf46a6955e5d1c7886e8f5225be0
treefbc115d703cfe8f47d7e0b737588cd7b86e323a5
parentacb73ebc901457078189071815ebe6aa81c91abb
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215954 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-type-decl1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-type-def1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/constexpr-type-def1.C [new file with mode: 0644]