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

            Bug ID: 122560
           Summary: ICE in cp_parser_skip_to_pragma_eol since version
                    4.4.7
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mario.rodriguezb1 at um dot es
  Target Milestone: ---

It happens since gcc 4.4.7 until actual version:

## Program

```
#define LISP(X) #X
#pragma message LISP(
```

## Stack dump

```
<source>:2:17: internal compiler error: in cp_parser_skip_to_pragma_eol, at
cp/parser.cc:4526
0x2903958 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x28f874b internal_error(char const*, ...)
        ???:0
0xb0cc90 fancy_abort(char const*, int, char const*)
        ???:0
0xd460a6 c_parse_file()
        ???:0
0xeb6739 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
```

## To quickly reproduce:

https://godbolt.org/z/4cT7Kvj6o

Reply via email to