This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ 2.91.66 bug report
- To: gcc-bugs at gcc dot gnu dot org
- Subject: g++ 2.91.66 bug report
- From: Mike <mike at notthebox dot com>
- Date: Fri, 21 Jan 2000 16:29:36 -0800 (PST)
This looks like a sporadic compiler bug that seems to occur on any of my
c++ code that makes use of streams.
GCC Version:
===========
egcs-2.91.66 [stock install from RedHat 6.1 RPMS]
System Type:
===========
Redhat 6.1 on i386 (linux kernel: 2.2.12-20)
Compiler Line:
==============
[mike@cr248721-a hello2cpp]$ g++ -v --save-temps -Wall -o hello2
hello2.cpp
Preprocessed Output
===================
(included: hello2.ii.gz)
Compiler stdout
===============
[mike@cr248721-a hello2cpp]$ g++ -v --save-temps -Wall -o hello2
hello2.cpp
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
-D__GNU
C__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix
-Di386 -D_
_i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__
-D__unix
-D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -Wall -Asystem(unix)
-Acpu(i38
6) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ hello2.cpp
hello2.
ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF
)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus hello2.ii -quiet
-dumpb
ase hello2.cc -Wall -version -o hello2.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
(i386-redhat-li
nux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2
release).
hello2.cpp: In method `void Hello::say_hello()':
hello2.cpp:24: Internal compiler error.
hello2.cpp:24: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
hello2.cpp:24: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
Details
=======
This bug is strange. If I try to compile it several times in a row with an
identical g++ command, I get varying results. Sometimes it compiles, and
the rest of the time I get compiler errors on one of the cout lines.
I checked the egcs /bugs.html page, and didn't see anything that looked
too much like this.
This file consistently compiles correctly on a sparc/solaris2.6 running
gcc 2.8.1.
Question: are there RPMS available for egcs-2.95? If so, I'll upgrade.
thanks,
Mike Van Snellenberg
hello2.ii.gz