https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326
--- Comment #10 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to steveren from comment #6) > Seems the consensus is that it's not contrary to Standard, but it's agreed > to be confusing and undesirable by everyone except the gcc maintainers :-) Not sure how you reached such conclusion, but it clearly misinterprets reality, otherwise this PR would be closed as INVALID already. I'm pretty sure if you submitted a patch making the behavior of all pragmas consistent with comment #9, this will be fixed by next week. (https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps) > I'll take a lot of persuading that this isn't a reasonable thing to want to > do. (Flagging the nasty, that is; purists who say you should never /do/ > anything you need to warn people about need not apply :-) ) I'm not sure to which "purists" you are referring but, from my experience, GCC welcomes warnings that help people to write better code and prevent mistakes as long as patches are written and tested properly and do not generate too many hard-to-work-around false positives. New warnings are added in every release. Thus, I would encourage you to submit a patch and see for yourself.