From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3154 invoked by alias); 19 Feb 2010 01:59:35 -0000 Received: (qmail 2786 invoked by uid 48); 19 Feb 2010 01:59:23 -0000 Date: Fri, 19 Feb 2010 01:59:00 -0000 Message-ID: <20100219015923.2785.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/9335] Inordinately long output 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/msg01899.txt.bz2 ------- Comment #9 from manu at gcc dot gnu dot org 2010-02-19 01:59 ------- Now, I mean a recent GCC (4.5), not my patch. The testcase for 23510 works ok and the output of my patch is: pr9335-2.C:7:3: error: expected unqualified-id before ‘template’ pr9335-2.C: At global scope: pr9335-2.C:4:3: error: template instantiation depth exceeds maximum of 50 (use -ftemplate-depth-NN to increase the maximum) instantiating ‘struct Factorial<4294967251u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<4294967252u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<4294967253u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<4294967254u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<4294967255u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<4294967256u>’ pr9335-2.C:4:3: [ skipping 40 instantiation contexts ] pr9335-2.C:4:3: instantiated from ‘Factorial<1u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<2u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<3u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<4u>’ pr9335-2.C:4:3: instantiated from ‘Factorial<5u>’ pr9335-2.C:17:20: instantiated from here pr9335-2.C:4:3: error: incomplete type ‘Factorial<4294967251u>’ used in nested name specifier So I can ignore this testcase and take the ones from PR23510 and PR43113. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9335