[Bug c++/60687] [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function

jolfzverb at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 28 19:05:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60687

Yury Usishchev <jolfzverb at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jolfzverb at gmail dot com

--- Comment #2 from Yury Usishchev <jolfzverb at gmail dot com> ---
Created attachment 32479
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32479&action=edit
Reduced testcase

The loop is not infinite, eventually(after 30 minutes for my workstation) build
fails with error:

main.cpp:35:60: error: template instantiation depth exceeds maximum of 900

you can use -ftemplate-depth=100 to achieve it faster.



More information about the Gcc-bugs mailing list