[Bug c++/70229] error: constexpr constructor does not have empty body
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 4 07:48:00 GMT 2016
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
More information about the Gcc-bugs
mailing list