This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/6749] infinite loop with inheritance of abstract classes


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]