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.