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

            Bug ID: 128497
           Summary: internal compiler error: in get_target_id, at
                    sarif-sink.cc
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 0599jiangyc at gmail dot com
  Target Milestone: ---

The following code:
```cpp
struct s2 : public __attribute__ {
```

Resulted in this output:
```
<source>:1:34: error: expected '(' before '{' token
<source>:1:34: error: expected '(' before '{' token
<source>:1:33: error: expected ')' before '{' token
<source>:1:34: internal compiler error: in get_target_id, at sarif-sink.cc:1576
```

Trunk reproducer (`-fdiagnostics-add-output=sarif`):
https://godbolt.org/z/vKqKjvxvj
  • [Bug c++/128497] New: internal c... 0599jiangyc at gmail dot com via Gcc-bugs

Reply via email to