https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120335
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to eczbek.void from comment #3)
> This also has the same issue:
> ```
> auto(*x)()->struct{};
> ```
That one fails for me as a parse error even without -pedantic:
```
<source>:1:19: error: expected identifier before '{' token
1 | auto(*x)()->struct{};
| ^
```
