https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111703
Bug ID: 111703 Summary: [C++20]Compiler fails when using generic lambda in specific situation Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: watanabemakoto.math at gmail dot com Target Milestone: --- Consider the example: ``` #include <utility> using P = std::pair<int, int>; void (*f)(P); int main(){ [](auto) { P x; f(x); }; } ``` GCC 13.2.0 fails to compile the example. Compile option is `-std=c++20` . Godbolt playground: https://godbolt.org/z/nPMb38ond