https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128538
Bug ID: 128538
Summary: internal compiler error: in cmp_attrib_identifiers, at
attribs.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
template <int N>
int fn (char (&)[N], const char *, ...) __attribute__ ((format (1, 2, 3)));
template <int N>
int fn (char (&)[N], const char *, ...) __attribute__ ((format (printf, 2,
3)));
```
Resulted in this output:
```
<source>:4:79: internal compiler error: in cmp_attrib_identifiers, at
attribs.cc:1379
```
Trunk reproducer: https://godbolt.org/z/oYh6fTzzs