This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70229] error: constexpr constructor does not have empty body
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Aug 2016 07:48:23 +0000
- Subject: [Bug c++/70229] error: constexpr constructor does not have empty body
- Auto-submitted: auto-generated
- References: <bug-70229-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Aug 4 07:47:50 2016
New Revision: 239115
URL: https://gcc.gnu.org/viewcvs?rev=239115&root=gcc&view=rev
Log:
PR c++/70229
* constexpr.c (check_constexpr_ctor_body_1): Allow typedef
declarations.
* g++.dg/cpp0x/constexpr-ctor19.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/ChangeLog