https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105098
Bug ID: 105098 Summary: ICE: endless recursion during auto deduction Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: a3at.mail at gmail dot com Target Milestone: --- Created attachment 52711 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52711&action=edit original cpp code While switching to libcxx from llvm-14 (actually llvm-13 fails too), using tuple w/o explicitly passing types leads to ICE with gcc-11.2 (gcc-12 works fine). Note, that you can reproduce this with simple usage of tuple from libcxx 13+, i.e.: # /usr/include/c++/v1 - path to libcxx g++ -std=gnu++20 -c -o /dev/null -isystem /usr/include/c++/v1 -nostdinc++ libcxx-tuple.cpp