This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/6749] infinite loop with inheritance of abstract classes
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2004 14:38:38 -0000
- Subject: [Bug c++/6749] infinite loop with inheritance of abstract classes
- References: <20020520123600.6749.rullo.pat@tiscalinet.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-08-16 14:38 -------
The infinite loop is fixed. Now the depth of template expansion in this
code is controlled by a GCC option, for example, to run 50 iterations
use -ftemplate-depth-50.
Unfortunately the default expansion depth is 500. This makes compile time
on my PC about 3 minutes with tree checking disabled. When tree checking
is enabled, this could take forever due to extra O(n^2) code in the
#ifdef block inside function 'add_substitution' that is called very frequently
during name mangling. Released versions of GCC is built with checking disabled
by default.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6749