This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52116] pragma GCC diagnostic only acts on some lines
- From: "b.r.longbons at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 04 Feb 2012 18:30:46 +0000
- Subject: [Bug c/52116] pragma GCC diagnostic only acts on some lines
- Auto-submitted: auto-generated
- References: <bug-52116-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52116
--- Comment #2 from Ben Longbons <b.r.longbons at gmail dot com> 2012-02-04 18:30:46 UTC ---
ah, got home where I have a bunch of versions ...
GCC < 4.6 fail with error: #pragma GCC diagnostic not allowed inside functions
GCC 4.6.{0,1,2}, branch-4.6 r183147, and trunk r182496,r182728,r183173 also
fail as described in this report. (Note that I already mentioned Debian GCC
4.6.2-11, GCC trunk r183363)