This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]