[Bug c++/70229] error: constexpr constructor does not have empty body

2016-08-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/70229] error: constexpr constructor does not have empty body

2016-08-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/70229] error: constexpr constructor does not have empty body

2016-08-04 Thread mpolacek at gcc dot gnu.org
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=gcc=rev Log: PR c++/70229 * constexpr.c (check_constexpr_ctor_body_1): Allow

[Bug c++/70229] error: constexpr constructor does not have empty body

2016-08-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229 --- Comment #5 from Marek Polacek --- Right, I'll do it.

[Bug c++/70229] error: constexpr constructor does not have empty body

2016-08-03 Thread pinskia at gcc dot gnu.org
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

[Bug c++/70229] error: constexpr constructor does not have empty body

2016-03-15 Thread mpolacek at gcc dot gnu.org
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

[Bug c++/70229] error: constexpr constructor does not have empty body

2016-03-15 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/70229] error: constexpr constructor does not have empty body

2016-03-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70229 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/70229] error: constexpr constructor does not have empty body

2016-03-14 Thread pangbw at gmail dot com
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