On Sun, 24 Jul 2022, Tom Honermann via Gcc-patches wrote: > Gcc's '#pragma GCC diagnostic' directives are processed in "early mode" > (see handle_pragma_diagnostic_early) for the C++ frontend and, as such, > require that the target diagnostic option be enabled for the preprocessor > (see c_option_is_from_cpp_diagnostics). This change modifies the > -Wc++20-compat option definition to register it as a preprocessor option > so that its associated diagnostics can be suppressed. The changes also
There are lots of C++ warning options, all of which should support pragma suppression regardless of whether they are relevant to the preprocessor or not. Do they all need this kind of handling, or is it only -Wc++20-compat that has some kind of problem? -- Joseph S. Myers jos...@codesourcery.com