This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57241] -Wmultichar warnings despite a #pragma diagnostic ignored -Wmultichar directive
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 12 May 2013 20:07:50 +0000
- Subject: [Bug c++/57241] -Wmultichar warnings despite a #pragma diagnostic ignored -Wmultichar directive
- Auto-submitted: auto-generated
- References: <bug-57241-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57241
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #4 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> (In reply to Paolo Carlini from comment #1)
> > In general, it's safe to say that #pragma diagnostic ignored is very buggy
> > (in C++ at least), we have got many long standing PRs.
>
> Well the whole token ahead of time for C++ front-end causes this and another
> issue with respect of #pragma's.
Doesn't CPP diagnostics pass through the pragma classify code in diagnostic.c
even when tokenizing ahead of time? If so, I don't understand why the warning
is not suppressed. I don't have time to investigate it myself, but I don't see
why that would be the problem here.