Bug 112985

Summary: internal compiler error: verify_stmts failed.
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Thomas Fehr <fehr>
Component: DevelopmentAssignee: Michael Matz <matz>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Minimal version of Disk.cc
preprocesseed file

Description Thomas Fehr 2005-08-25 13:58:31 UTC
I get the above error message when trying to compile C++ source file.

Lagrange:/usr/src/yast2/source/storage/libstorage/src > g++ -DHAVE_CONFIG_H -I.
-I. -I../.. -I/usr/include/YaST2 -I/usr/include/evms    -g -O2 -Wall -Wformat
-MT Disk.lo -MD -MP -MF ".deps/Disk.Tpo" -c -o Disk.o Disk.cc
Disk.cc: In member function ‘int Disk::removePartition(unsigned int)’:
Disk.cc:6: error: Statement marked for throw, but doesn’t.
#   lD.44025_1174 = V_MAY_DEF <lD.44025_1648>;
#   __FUNCTION__D.44063_1173 = V_MAY_DEF <__FUNCTION__D.44063_1652>;
D.49692_1301 = notDeleted (dD.49686_1291);

Disk.cc:6: internal compiler error: verify_stmts failed.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.suse.de/feedback> for instructions.
Lagrange:/usr/src/yast2/source/storage/libstorage/src > 

The bug goes way when I move the statement "p = partPair( notDeleted );" in
line 23 of Disk.cc away from the end of the block. 

Lagrange:/usr/src/yast2/source/storage/libstorage/src > gcc -v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man
--libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,f95,java,ada --enable-checking
--with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk
--disable-libjava-multilib --with-slibdir=/lib --with-system-zlib
--enable-shared --enable-__cxa_atexit --without-system-libunwind
--host=i586-suse-linux
Thread model: posix
gcc version 4.0.2 20050818 (prerelease) (SUSE Linux)
Comment 1 Thomas Fehr 2005-08-25 14:01:35 UTC
Created attachment 47555 [details]
Minimal version of Disk.cc
Comment 2 Thomas Fehr 2005-08-25 14:02:06 UTC
Created attachment 47556 [details]
preprocesseed file
Comment 3 Michael Matz 2005-09-05 06:26:24 UTC
Fixed with the 20050901 compiler