This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/85252] [6/7/8 Regression] ICE with -g for static zero-length array initialization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85252

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As for warning/error, we do accept static char a[1] = "a"; without warning, and
emit a warning for static char a[1] = "ab";
warning: initializer-string for array of chars is too long
and similarly emit a warning for a[0] = "a";

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]