[Bug c/52116] pragma GCC diagnostic only acts on some lines
b.r.longbons at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Feb 4 18:31:00 GMT 2012
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)
More information about the Gcc-bugs
mailing list