Bug 514 - g++ gives an internal compiler error while compiling some template code
Summary: g++ gives an internal compiler error while compiling some template code
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 2.95.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2000-09-07 17:06 UTC by syn
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
mksrc.ii.gz (38.74 KB, application/x-gzip )
2003-05-21 15:16 UTC, syn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description syn 2000-09-07 17:06:01 UTC
cc1plus: warning: -fexternal-templates is deprecated.
cc1plus: warning: Please see the documentation for details.
../../include/OTC/collctn/cursor.c: In instantiation of `OTC_Cursor<APP_ConfigItem>::clone()':
../../include/OTC/collctn/iterator.hh:90:   instantiated from here
../../include/OTC/collctn/cursor.c:72: Internal compiler error.

This occurs consistantly.

Release:
gcc version 2.95.2 19991024 (release)

Environment:
SunOS 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-2

How-To-Repeat:
/v/deployment/arl/inst/gcc-2.95.2/sun5/bin/g++ -g -DCXX_GNU -DCXX_GNU2_95_1 -Wall -Woverloaded-virtual -DHAVE_EXCEPTIONS -pipe -ISPARC_SOL2_dbg -I../../include -DOTCLIB_TRACE -I./../../config/SPARC_SOL2 -DOTCLIB_TRACE -DSYS_SPARC_SOL2 -DENV_NOTHROWEXCEPTION -c -DEXPAND_TEMPLATES -fexternal-templates mksrc.cc -o SPARC_SOL2_dbg/mksrc.o
Comment 1 Nathan Sidwell 2000-10-04 02:33:16 UTC
State-Changed-From-To: open->closed
State-Changed-Why: current CVS (20001004) compiles this without error
Comment 2 Nathan Sidwell 2000-10-04 09:33:16 UTC
From: nathan@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org, syn@trifocus.net
Cc:  
Subject: Re: c++/514
Date: 4 Oct 2000 09:33:16 -0000

 Synopsis: g++ gives an internal compiler error while compiling some template code
 
 State-Changed-From-To: open->closed
 State-Changed-By: nathan
 State-Changed-When: Wed Oct  4 02:33:16 2000
 State-Changed-Why:
     current CVS (20001004) compiles this without error
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=514&database=gcc