https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89619
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |compile-time-hog
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-03-07
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
It terminates just fine for me - it's just a "bit" slow. GCC 8 is way faster.
> /usr/bin/time /space/rguenther/install/gcc-7.3/bin/g++ t.C -O
61.43user 0.06system 1:01.50elapsed 99%CPU (0avgtext+0avgdata
142964maxresident)k
0inputs+1016outputs (0major+55908minor)pagefaults 0swaps
The issue is the initializer is unrolled in GCC 7 while it is a loop in later
releases. IIRC there was a C++ FE bug fixed, but not a regression, so it
probably won't be backported.