https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108244

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-12-28
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |diagnostic,
                   |                            |needs-bisection,
                   |                            |rejects-valid
            Summary|[13 Regression] Cannot      |[13 Regression] `pragma GCC
                   |preprocess standard         |diagnostic` and -E
                   |<algorithm> header with -E  |-fdirectives-only causes
                   |-fdirectives-only           |the preprocessor to become
                   |                            |confused

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase that shows the issue (different warning/error message though):
```
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
#ifdef t
#endif
```
This gives:
<source>:1:9: warning: extra tokens at end of #ifdef directive
    1 | #pragma GCC diagnostic push
      |         ^
Compiler returned: 0

Reply via email to