This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/57241] -Wmultichar warnings despite a #pragma diagnostic ignored -Wmultichar directive


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]