https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65042
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu.org Component|c++ |libstdc++ --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Verified that even with 2.5 years old cc1plus we still trigger the instantiation limit, so it indeed is some changes in libstdc++. Guess you can try -ftemplate-depth=20 etc. in 4.9 to see how close to the limit you were before.