Bug 177506

Summary: compiler fails when compiling c++ abstract class structure
Product: [Fedora] Fedora Reporter: Peter Woodward <peter>
Component: gcc4Assignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: 4.0.2-8.fc4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-11 21:16:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
tar achive of relevant c++/header files
none
Preprocessed source file created by compiler none

Description Peter Woodward 2006-01-11 11:17:56 UTC
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  
usage....  
However  
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  
-DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -c sceneMan.cpp 
 
to compile the scene/graphics management class the following message is 
produced 
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-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)


How reproducible:
Always

Steps to Reproduce:
1.issue the compiler command  
2.  
3.  
    

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 11:22:08 UTC
Created attachment 123048 [details]
tar achive of relevant c++/header files

Comment 2 Peter Woodward 2006-01-11 11:23:58 UTC
Created attachment 123050 [details]
Preprocessed source file created by compiler

Comment 3 Jakub Jelinek 2006-01-11 21:16:26 UTC
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.