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++/13886] Compiler crash on deeply nested template


------- Additional Comments From giovannibajo at libero dot it  2004-01-30 13:04 -------
David,

ISO C++ says that a compliant C++ compile must implement at least 17 recursive 
levels for template instantiation. We do keep a default limit around 500 for a 
good reason, which is trying not to break stack or memory limits. By the look 
of your error logs, GCC instantiate about 3300 templates before dieing. 

There is no way you will ever be able to compile such a program on any C++ 
compiler on earth. If you do, you can as well try recompiling G++ with a larger 
stack size. Besides, the problem is *PURELY* academic, since no real-world code 
will ever look like that.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


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


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