https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84562
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID Known to fail| |2.95.2, 3.4.6, 7.2.1 --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Btw, the behavior is the way you describe since forever. That GCC looks at the constant initializer for the array is just a direct consequence of it looking at the constant initializer of the scalar. clang does the same, so does ICC. So I think I'll stay with INVALID here.