------- Comment #2 from pinskia at gcc dot gnu dot org  2009-01-01 04:44 -------
That is the whole point of -ftemplate-depth- default being set to 500.

There is an implementation defined
quantity that specifies the limit on the total depth of recursive
instantiations,
which could involve more than one template. The result of an infinite recursion
in instantiation is
undefined.

In this case we default to 500 but allow the user to override it.

There is nothing to fix here really because recursive instantiation is
recursive in nature and either will run out of memory or will cause a seg fault
when running out of stack space.


-- 

pinskia at gcc dot gnu dot org changed:

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


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

Reply via email to