Package: g++-3.0 Version: 1:3.0.4-7 Description: g++/gcc (Version: 1:3.0.4-7, 2:2.95.4-14 and possibly others) crashes with segmentation-fault when compiling this:
===bang.cc=== #include <complex> int main(int argc, char *argv[]) { std::complex<double> a(1.0, 1.0); std::complex<double> b(1.0, 1.0); // while replacing the GNU-proprietary __complex__,__real__, // __imag__-syntax with STL's complex-template-class I forgot // this line which causes the segmentation fault: __imag__ a = - (__imag__ b); return 0; } ===bang.cc=== The error message (using g++-3.0 1:3.0.4-7): ====== $ g++ -c bang.cc bang.cc: In function `int main(int, char**)': bang.cc:9: Internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. ====== although mixing types and syntax was my fault, the compiler should not crash with a segmentation fault. Thanks! -- Michael Weitzel ... all work and no play makes Jack a dull boy ...