https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83754
Tim Shen <timshen at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timshen at gcc dot gnu.org --- Comment #1 from Tim Shen <timshen at gcc dot gnu.org> --- This is actually the same as bug 61601. The crash is due to stack overflow, because the implementation uses recursion. If you set the stack limit to 100x higher (ulimit -s 819200 for me), it stops crashing and have the somewhat expected quadratic behavior.