[Bug c++/84578] [6/7/8 Regression] ICE with flexible array member and constexpr
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 27 17:06:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84578
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I think the code should be rejected in constexpr contexts, as Clang does.
Otherwise the size of A::x is zero, which would make it an invalid object. I'm
changing it to ice-on-invalid-code but please let me know if you know of an
argument for accepting it.
More information about the Gcc-bugs
mailing list