[Bug c++/84578] [6/7/8 Regression] ICE with flexible array member and constexpr

2018-03-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84578 --- Comment #4 from Marek Polacek --- Author: mpolacek Date: Fri Mar 2 20:27:46 2018 New Revision: 258156 URL: https://gcc.gnu.org/viewcvs?rev=258156=gcc=rev Log: PR c++/84578 * constexpr.c (get_array_or_vector_nelts): New.

[Bug c++/84578] [6/7/8 Regression] ICE with flexible array member and constexpr

2018-03-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84578 --- Comment #3 from Marek Polacek --- I think I'll leave this as it is; we give an error for struct A { constexpr A() : i(), x("foo") {} int i; char x[]; }; A a; I have a patch for the ICE.

[Bug c++/84578] [6/7/8 Regression] ICE with flexible array member and constexpr

2018-02-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84578 Martin Sebor changed: What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code --- Comment #2 from

[Bug c++/84578] [6/7/8 Regression] ICE with flexible array member and constexpr

2018-02-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84578 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c++/84578] [6/7/8 Regression] ICE with flexible array member and constexpr

2018-02-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84578 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c++/84578] [6/7/8 Regression] ICE with flexible array member and constexpr

2018-02-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84578 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|