From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20136 invoked by alias); 14 May 2003 00:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20091 invoked by uid 71); 14 May 2003 00:56:00 -0000 Date: Wed, 14 May 2003 00:56:00 -0000 Message-ID: <20030514005600.20090.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/6749: [2003-05-12] infinte loop with inheritance of abstract classes Reply-To: Wolfgang Bangerth X-SW-Source: 2003-05/txt/msg01531.txt.bz2 List-Id: The following reply was made to PR c++/6749; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-bugs@gcc.gnu.org, , Cc: Subject: Re: c++/6749: [2003-05-12] infinte loop with inheritance of abstract classes Date: Tue, 13 May 2003 19:47:44 -0500 (CDT) This is even shorter than Nathanael's testcase: -------------------------------- template struct inner {}; template struct parent { virtual void f() { parent > p; }; }; template struct parent; --------------------------------- I don't think it's particularly surprising that this puts gcc into a loong loop, since in parent we instantiate parent >, in which we instantiate parent > >, in which... well, we get the picture. Compiling this indeed takes very long. I didn't check how, long, but what _is_ surprising, that it takes long already with -ftemplate-depth-2, which really shouldn't happen. Funny testcase... W. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ices.utexas.edu www: http://www.ices.utexas.edu/~bangerth/