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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|parser segv                 |ICE with invalid variable
                   |                            |auto arguments and
                   |                            |supplying an extra type

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced further (a C++20 since C++20 expanded the use of auto to functions
rather than just lambdas but still invalid):
```
typedef int mytype;
void f(mytype auto... I) {}
```

Note without the variable argument auto, GCC rejects the code:
<source>:2:8: error: two or more data types in declaration of 'I'
    2 | void f(mytype auto I) {}
      |        ^~~~~~

Reply via email to