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++/52964] No warning on negative array size in template instantatiation


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


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