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]

regression in 4.0.0, with code using templates and multiple inheritance


Dear sir/madam,

I'm having a runtime problem with the executable generated by GCC 4.0.0.
This problem has been tested on Mac OS/X 10.4 running GCC 4.0.0, and
Linux (Redhat 9) also running GCC 4.0.0 (and confirmed on Linux using
4.0.1 pre-release dated 6-16-2005).

Linux Configuration:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./../gcc-4.0.0/configure -prefix=/usr/gcc-4.0.0
Thread model: posix
gcc version 4.0.0

Build command: g++ -g -save-temps -O0

No compiler warnings or errors are generated, but when run, the
executable gives "Segmentation fault" on Linux, and "Bus Error" on the
mac.  This code works fine in gcc 3.4.3, as well as Sun's C++ compiler,
HP aC++, IBM's C++ compiler, Borland C++, and MSVC.

The generated ii file is attached (it was too large to include in the
bugzilla database).


Best regards,

Neil Peterson (neilp@opendesign.com)
Open Design Alliance

Attachment: main.ii.gz
Description: GNU Zip compressed data


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