https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121012
Bug ID: 121012 Summary: Error on lambda with auto parameter as template argument Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eczbek.void at gmail dot com Target Milestone: --- https://godbolt.org/z/nfeh3Tbez ``` template<auto> int x; int main() { x<[](auto) {}>; } ``` ``` <source>: In function 'int main()': <source>:4:14: error: use of 'auto' in template argument [-Wabbreviated-auto-in-template-arg] 4 | x<[](auto) {}>; | ^~~~ Compiler returned: 1 ``` This works in 15.1