[Bug c++/52964] No warning on negative array size in template instantatiation

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 12 23:04:00 GMT 2012


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-12 23:04:05 UTC ---
pinskia@server:~$ ~/treecombine-gcc/bin/gcc t.cc
t.cc: In instantiation of ‘struct S1<4>’:
t.cc:4:49:   required from ‘struct S2<int>’
t.cc:5:45:   required from ‘void foo(T) [with T = int]’
t.cc:6:21:   required from here
t.cc:3:43: error: size of array is negative



More information about the Gcc-bugs mailing list