http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44609
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-10 05:32:10 UTC --- This isn't actually an infinite loop; it's a sequence of recursive instantiations which hit an error in each instantiation of the same function. Eventually it will hit the maximum template instantiation depth and stop, but that takes a very long time with the default -ftemplate-depth. It probably makes sense not to continue to instantiate a template after one instantiation has produced an error.