https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80387
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
CC| |marxin at gcc dot gnu.org,
| |redi at gcc dot gnu.org
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r230496:
PR libstdc++/66059 optimise _Build_index_tuple
PR libstdc++/66059
* include/std/utility (_Build_index_tuple): Optimise.
where revision before that:
In file included from pr80387.cpp:1:0:
/home/marxin/DATA/gcc-binaries/gcc-77511595a0954c5a2e69dc584c65aa69612e2614/include/c++/6.0.0/utility:
In instantiation of ‘struct std::_Build_index_tuple<18446744073709551517ul>’:
/home/marxin/DATA/gcc-binaries/gcc-77511595a0954c5a2e69dc584c65aa69612e2614/include/c++/6.0.0/utility:225:69:
recursively required from ‘struct
std::_Build_index_tuple<18446744073709551614ul>’
/home/marxin/DATA/gcc-binaries/gcc-77511595a0954c5a2e69dc584c65aa69612e2614/include/c++/6.0.0/utility:225:69:
required from ‘struct std::_Build_index_tuple<18446744073709551615ul>’
pr80387.cpp:16:53: required from ‘struct type_list<>’
pr80387.cpp:21:28: required from here
/home/marxin/DATA/gcc-binaries/gcc-77511595a0954c5a2e69dc584c65aa69612e2614/include/c++/6.0.0/utility:225:69:
fatal error: template instantiation depth exceeds maximum of 100 (use
-ftemplate-depth= to increase the maximum)
typedef typename _Build_index_tuple<_Num - 1>::__type::__next __type;
^~~~~~
Looks clang also hangs in an infinite loop.