public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6749: [2003-05-12] infinte loop with inheritance of abstract classes
@ 2003-05-14 0:56 Wolfgang Bangerth
0 siblings, 0 replies; only message in thread
From: Wolfgang Bangerth @ 2003-05-14 0:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/6749; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ices.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>, <rullo.pat@tiscalinet.it>
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 <class T> struct inner {};
template <class T> struct parent {
virtual void f()
{ parent<inner<T> > p; };
};
template struct parent<int>;
---------------------------------
I don't think it's particularly surprising that this puts gcc into a loong
loop, since in parent<T> we instantiate parent<inner<T> >, in which we
instantiate parent<inner<inner<T> > >, 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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-14 0:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 0:56 c++/6749: [2003-05-12] infinte loop with inheritance of abstract classes Wolfgang Bangerth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).