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 c/13896] Initializer string warning not printed if implied NULL-terminator out of bounds


------- Additional Comments From schwab at suse dot de  2004-01-28 14:42 -------
char a[][3] = {{"Hel"}, {"Hi"}}; 
 
is required to be equivalent to 
 
char a[][3] = {{'H', 'e', 'l'}, {'H', 'i', '\0'}}; 
 
See 6.7.8#14. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13896


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