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

            Bug ID: 101884
           Summary: Generic lambda with auto in template parameter list
                    rejected
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/Go36onYGc.
```C++
template<auto=[](auto){}>int i;
```
```
<source>:1:18: error: 'auto' parameter not permitted in this context
    1 | template<auto=[](auto){}>int i;
      |                  ^~~~
Compiler returned: 1
```

Reply via email to