public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/86503] Segmentation fault signal terminated
       [not found] <bug-86503-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-11 23:09 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-08-11 23:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86503

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>-ftemplate-depth=1000000

This is not a bug, the whole point of template-depth is to prevent the crashes
like this from happening.


Anyways clang on the trunk says:

<source>:15:9: warning: stack nearly exhausted; compilation time may suffer,
and crashes due to stack overflow are likely [-Wstack-exhausted]
typeof( ft< F, n-1 >( F(), 0 ) )
        ^
...

<source>:15:9: fatal error: recursive template instantiation exceeded maximum
depth of 1024
typeof( ft< F, n-1 >( F(), 0 ) )
        ^

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-11 23:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-86503-4@http.gcc.gnu.org/bugzilla/>
2021-08-11 23:09 ` [Bug c++/86503] Segmentation fault signal terminated pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).