This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52964] No warning on negative array size in template instantatiation
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Apr 2012 23:23:31 +0000
- Subject: [Bug c++/52964] No warning on negative array size in template instantatiation
- Auto-submitted: auto-generated
- References: <bug-52964-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52964
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 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.