http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57241
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (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.