https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102606
--- Comment #4 from Karine EM <k.even-mendoza at imperial dot ac.uk> --- That would make sense, and I think it is also what happens when compiling the example with Clang and -O0 since the compilation takes only a few seconds then.