re PR c++/70229 (error: constexpr constructor does not have empty body)
authorMarek Polacek <polacek@redhat.com>
Thu, 4 Aug 2016 07:47:50 +0000 (07:47 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 4 Aug 2016 07:47:50 +0000 (07:47 +0000)
commita00084346a299e8154ede732c6d4d3ae56d1f66f
treed15afcd494f4ffb17686aa081db652476c463186
parentfb46286e8d34e8bffdc9d04ec4cf4b10698a7e20
re PR c++/70229 (error: constexpr constructor does not have empty body)

PR c++/70229
* constexpr.c (check_constexpr_ctor_body_1): Allow typedef
declarations.

* g++.dg/cpp0x/constexpr-ctor19.C: New test.

From-SVN: r239115
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor19.C [new file with mode: 0644]