[Bug c/71115] Missing warning: excess elements in struct initializer
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 18 19:34:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71115
--- Comment #8 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #7)
> Thanks, Manuel. That does the trick. Let me put a patch together.
Note also that the extra:
uu.c:3:26: note: (near initialization for ‘a’)
is just a relic of the no-caret era. Clang does not mention it and G++ simply
says:
too many initializers for 'const char* [1]'
which is more informative (although G++ location info is worse than in GCC).
More information about the Gcc-bugs
mailing list