Internal Compiler Error

Nathan Sidwell nathan@acm.org
Sun Feb 28 23:30:00 GMT 1999


Thomas Boggs wrote:
> $ egcs -o foo foo.cpp
> foo.cpp: In function `int main()':
> foo.cpp:7: Internal compiler error.
> foo.cpp:7: Please submit a full bug report to `egcs-bugs@cygnus.com'.
> 
> Removing 'const' from line 6 or removing line 7 completely lets it
> compile.  I'm on a P166 running Redhat 5.2.  Let me know if you need
You don't specify the version of egcs (g++ -v), but it looks like the 1.0.3 release.

The 1.1 release and the current snapshot compile this without error,

nathan@manao:203>g++ -v
Reading specs from /usr/local/egcs/sparc-SunOS_5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
g++: No input files
nathan@manao:204>g++ -c foo.cc
foo.cc: In function `int main()':
foo.cc:6: warning: initialization to `char *' from `const char *' discards const
nathan@manao:205>ss-g++ -v    
Reading specs from /local/nathan/ss/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.93.06/specs
gcc version egcs-2.93.06 19990208 (gcc2 ss-980929 experimental)
nathan@manao:206>ss-g++ -c foo.cc 

I suggest upgrading

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
      You can up the bandwidth, but you can't up the speed of light      
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk



More information about the Gcc-bugs mailing list