From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1463 invoked by alias); 20 Feb 2010 01:55:18 -0000 Received: (qmail 1338 invoked by uid 48); 20 Feb 2010 01:55:01 -0000 Date: Sat, 20 Feb 2010 01:55:00 -0000 Message-ID: <20100220015501.1337.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/9335] repeated diagnostic when maximum template depth is exceeded In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-02/txt/msg02015.txt.bz2 ------- 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