From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23117 invoked by alias); 18 Apr 2010 17:10:20 -0000 Received: (qmail 22980 invoked by uid 48); 18 Apr 2010 17:09:46 -0000 Date: Sun, 18 Apr 2010 17:10:00 -0000 Message-ID: <20100418170946.22977.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: "jason 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-04/txt/msg01709.txt.bz2 ------- Comment #22 from jason at gcc dot gnu dot org 2010-04-18 17:09 ------- (In reply to comment #21) > Is that ok or you would prefer the following? > > /home/manuel/src/pr9335.C:2:36: error: template instantiation depth exceeds > maximum of 1024 (use -ftemplate-depth= to increase the maximum) instantiating > 'struct X<-0x00000000000000018>' > /home/manuel/src/pr9335.C:2:36: recursively instantiated from 'const int > X::value' > /home/manuel/src/pr9335.C:2:36: recursively instantiated from 'const int > X<1000>::value' > /home/manuel/src/pr9335.C:4:17: instantiated from here I was thinking just /home/manuel/src/pr9335.C:2:36: recursively instantiated from 'const int X<999>::value' /home/manuel/src/pr9335.C:2:36: instantiated from 'const int X<1000>::value' I think seeing one iteration would make it clearer. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9335