[Bug c++/80179] ICE initializing a static local object with flexible array member in verify_ctor_sanity, at cp/constexpr.c:2641
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 24 22:43:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80179
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to fail| |6.3.0, 7.0
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
In C the test case isn't strictly conforming because it uses a non-constant
initializer for a static object (for which it's rejected by GCC), and because C
doesn't allow initializing objects with flexible array members.
In C++ where such initializers are allowed it is meant to be accepted by G++
which also supports static initialization of flexible array members as an
extension.
More information about the Gcc-bugs
mailing list