[Bug c/13896] Initializer string warning not printed if implied NULL-terminator out of bounds

schwab at suse dot de gcc-bugzilla@gcc.gnu.org
Wed Jan 28 14:42:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list