https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128531
Bug ID: 128531
Summary: internal compiler error: in
cp_parser_expression_statement, at cp/parser.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 <typename... T> struct A { void f (T p) { p + 1; } };
```
Resulted in this output:
```
<source>:1:56: internal compiler error: in cp_parser_expression_statement, at
cp/parser.cc:14945
```
Trunk reproducer (`-Wno-template-body`): https://godbolt.org/z/ozWcP8h1j