[Bug c++/45431] specify the field for initializer-string for array of chars is too long
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45431 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #5 from Andrew Pinski --- Fixed for GCC 9 by r9-4974-gdfd7fdca2ac17d .
[Bug c++/45431] specify the field for initializer-string for array of chars is too long
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45431 --- Comment #4 from Jonathan Wakely --- Because the C front end gets the location info right in recent versions of GCC it also marks the bad initializer with carets: bug.c:4:3: warning: initializer-string for array of chars is too long "Christopher", ^ bug.c:4:3: note: (near initialization for 'sc_me.name') bug.c:5:3: warning: initializer-string for array of chars is too long "Yeleighton" }; ^~~~ bug.c:5:3: note: (near initialization for 'sc_me.surname') This is ideal, as it shows both the bad initializer, and the field it's trying to initialize.
[Bug c++/45431] specify the field for initializer-string for array of chars is too long
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45431 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED |NEW Last reconfirmed||2010.10.28 20:21:23 Summary|initializer-string for |specify the field for |array of chars is too long: |initializer-string for |which one? |array of chars is too long Ever Confirmed|0 |1 --- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org 2010-10-28 20:21:23 UTC --- Confirmed.