https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119184
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX CC| |xry111 at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- This is a "compiler bomb" and you cannot expect a compiler to handle it properly. That's why GCC security policy says: Compiling untrusted sources can result in arbitrary code execution and unconstrained resource consumption in the compiler. As a result, compilation of such code should be done inside a sandboxed environment to ensure that it does not compromise the host environment.