Bug 177506 - compiler fails when compiling c++ abstract class structure
compiler fails when compiling c++ abstract class structure
Product: Fedora
Classification: Fedora
Component: gcc4 (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2006-01-11 06:17 EST by Peter Woodward
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.0.2-8.fc4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-01-11 16:16:26 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
tar achive of relevant c++/header files (10.00 KB, application/octet-stream)
2006-01-11 06:22 EST, Peter Woodward
no flags Details
Preprocessed source file created by compiler (1.12 MB, text/x-c++src)
2006-01-11 06:23 EST, Peter Woodward
no flags Details

  None (edit)
Description Peter Woodward 2006-01-11 06:17:56 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.0 (like Gecko)

Description of problem:
Slightly rusty on c++ class syntax and usage, so problem may be due to stupid  
virtual scene management class  
virtual open gl graphics drawing class  
integrate the two in a single class, also using some static functionality  
Also involved is Qt 3.3...  
when using the following compile line (some of the options I don't know):-  
g++  -I/usr/include -I/home/petew/cppOpenGL/graphlib/geomlib 
-I/usr/X11R6/include -I -I. -I/usr/lib/qt-3.3/mkspecs/default 
-I/usr/lib/qt-3.3/include -pipe -Wall -W -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables  
to compile the scene/graphics management class the following message is 
sceneMan.h:24: internal compiler error: in grokfield, at cp/decl2.c:909 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions. 
Preprocessed source stored into /tmp/ccZaU60v.out file, please attach this to 
your bugreport. 

Version-Release number of selected component (if applicable):
g++ -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj- --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)

How reproducible:

Steps to Reproduce:
1.issue the compiler command  

Actual Results:  internal compiler error in grokfield (as above) 

Expected Results:  the compiler should have produced an object file 

Additional info:
Comment 1 Peter Woodward 2006-01-11 06:22:08 EST
Created attachment 123048 [details]
tar achive of relevant c++/header files
Comment 2 Peter Woodward 2006-01-11 06:23:58 EST
Created attachment 123050 [details]
Preprocessed source file created by compiler
Comment 3 Jakub Jelinek 2006-01-11 16:16:26 EST
Can't reproduce with the current FC4 update compiler (gcc-4.0.2-8.fc4).
The file doesn't compile, because it is not valid ISO C++, but doesn't ICE
and issues proper diagnostics.

Note You need to log in before you can comment on or make changes to this bug.