[Bug libstdc++/103096] Compiling never ends (at least not in resonable time - less than 10 mins)

2021-11-05 Thread pavel.celba at ricardo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103096

--- Comment #2 from Pavel Celba  ---
But shouldn't the compiler end in all cases with some error?
There should be a depth instantiation limit which is reached and compilation
ended.
No matter how non-sensible the input is. My input is quite sensible C++ code
bug thing any amateur can easily do.

[Bug libstdc++/103096] Compiling never ends (at least not in resonable time - less than 10 mins)

2021-11-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103096

Richard Biener  changed:

   What|Removed |Added

  Component|c++ |libstdc++
   Keywords||compile-time-hog

--- Comment #1 from Richard Biener  ---
same for clang++, so possibly a libstdc++ issue.  But then you are
instantiating std::pair, std::pair >, etc.,
exponentially growing the size of the template...

Which means - don't do this?