http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #8 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2013-01-04 10:51:22 UTC --- Indeed, handle_pragma_diagnostic is called too late after lexing because pragmas are only parsed during the parsing phase but warnings can be emitted way earlier (and even earlier than lexing, during command-line setup). Bah, this doesn't look easy to fix at all.