Bug using RH7.0 version of g++....

Fons Rademakers Fons.Rademakers@cern.ch
Mon Oct 2 06:06:00 GMT 2000

This bug seems to be in the simple inline:

GContext_t operator()() const { return fContext; }

GContext_t being a typedef to an unsigned long.

Placing it out of line removes the error.

(pcroot2) [177] g++ -v --save-temps -O -pipe -Wall -fPIC -Iinclude  -D_REENTRANT
-o gui/src/TGFSComboBox.o -c gui/src/TGFSComboBox.cxx
g++: Warning: -pipe ignored since -save-temps specified
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c++ -D__GNUG__=2 -v
-Iinclude -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__
-Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux
-Asystem(posix) -D__OPTIMIZE__ -Wall -Acpu(i386) -Amachine(i386) -Di386 -D__i386
-D__i386__ -D__tune_i386__ -D__PIC__ -D__pic__ -D_REENTRANT
gui/src/TGFSComboBox.cxx TGFSComboBox.ii
GNU CPP version 2.96 20000731 (Red Hat Linux 7.0) (cpplib)
 (i386 Linux/ELF)
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1plus TGFSComboBox.ii -quiet
-dumpbase TGFSComboBox.cxx -O -Wall -version -fPIC -o TGFSComboBox.s
GNU C++ version 2.96 20000731 (Red Hat Linux 7.0) (i386-redhat-linux) compiled
by GNU C version 2.96 20000731 (Red Hat Linux 7.0).
include/TGGC.h: In method `void TGFSComboBox::Update (const char *)':
include/TGGC.h:53: Internal compiler error in fix_lexical_addr, at 
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

Find .ii in attachement. Bug does not happen without -O option.

Cheers, Fons.
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TGFSComboBox.ii.gz
Type: application/x-gzip
Size: 51977 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001002/f9fae58b/attachment.bin>

More information about the Gcc-bugs mailing list