https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
--- Comment #6 from Marek Polacek ---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
--- Comment #5 from Marek Polacek ---
Right, I'll do it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
Andrew Pinski changed:
What|Removed |Added
Known to fail||6.1.0
--- Comment #4 from Andrew Pinski
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
--- Comment #3 from Marek Polacek ---
And the fix should be just to
--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -419,7 +419,8 @@ check_constexpr_ctor_body_1 (tree last, tree list)
switch (TREE_CODE (list))
{
case DECL_EXPR:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
Jonathan Wakely changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNCON
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229
--- Comment #1 from baoshan ---
The error is triggered by the typedef clause, but it is valid according
standard C++11
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3376.pdf:
...
— either its function-body shall be = default, or the c