https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103096
--- Comment #2 from Pavel Celba <pavel.celba at ricardo dot com> --- 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.