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

2012-10-16 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52964 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

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

2012-04-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52964 --- Comment #6 from Richard Guenther 2012-04-13 09:50:01 UTC --- It's at least somewhat making -fsyntax-only less useful for C++ ... I'd use -fsyntax-only to have all errors reported and thus all invalid CUs rejected ... We do report non-syntax

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

2012-04-12 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52964 --- Comment #5 from Manuel López-Ibáñez 2012-04-12 23:25:36 UTC --- (In reply to comment #4) > (In reply to comment #3) > > With -fsyntax-only, the warning is not emitted -- any reason for that? > > Yes because -fsyntax-only does not do templat

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

2012-04-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52964 --- Comment #4 from Andrew Pinski 2012-04-12 23:23:31 UTC --- (In reply to comment #3) > With -fsyntax-only, the warning is not emitted -- any reason for that? Yes because -fsyntax-only does not do template instantatiations at all IIRC.

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

2012-04-12 Thread xinliangli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52964 --- Comment #3 from davidxl 2012-04-12 23:19:33 UTC --- (In reply to comment #2) > And with trunk we print: > > pr52964.cc: In instantiation of ‘struct S1<4>’: > pr52964.cc:2:49: required from ‘struct S2’ > pr52964.cc:3:45: required from ‘vo

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

2012-04-12 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52964 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment

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

2012-04-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52964 --- Comment #1 from Andrew Pinski 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’ t.cc:5:45: required from ‘void foo(T) [with T = int]