------- Comment #12 from manu at gcc dot gnu dot org 2010-02-20 01:55 ------- The reason why this testcase cannot be solved like bug 23510 is that this testcase produces many repeated:
error: template instantiation depth exceeds maximum of 500 (use -ftemplate-depth-NN to increase the maximum) instantiating `struct X<500>' each of them with their own long list of instantiations. In fact, this could have been detected in the testsuite: gcc/testsuite/g++.dg/template/recurse.C but the testsuite does not detect repeated messages. We should give just one error like Comeau does. This is a regression but I don't know in which version this used to work. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|manu at gcc dot gnu dot org |unassigned at gcc dot gnu | |dot org Status|ASSIGNED |NEW Summary|Inordinately long output |repeated diagnostic when |when maximum template depth |maximum template depth is |is exceeded |exceeded http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9335