ICE in libstdc++-v3 std_complex.h

Petter Urkedal petter@matfys.lth.se
Tue Oct 12 02:58:00 GMT 1999


I just downloaded and installed the latest libstdc++ from CVS,
and get an ICE from a simple program.  Details follow.
(If you need CPP-ed source, i'll leave it here for some time,
http://www.matfys.lth.se/~petter/bugs/ice-1.ii.bz2 )

Cheers,
Petter.


------------$ uname -a
Linux katsumoto.matfys.lth.se 2.2.5-22 #1 Wed Jun 2 09:02:27 EDT 1999
i586 unknown

------------$ c++ -v
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.1/specs
gcc version 2.95.1 19990809 (prerelease)

------------$ c++ -c -I/usr/local/lib3/include/g++-v3 ice-1.cc
/usr/local/lib3/include/g++-v3/bits/std_complex.h: In method `class
complex<float> & complex<float>::operator *=<float>(const complex<float>
&)':
/usr/local/lib3/include/g++-v3/bits/std_complex.h:834:   instantiated
from `operator *<float>(const complex<float> &, const complex<float> &)'
ice-1.cc:5:   instantiated from here
/usr/local/lib3/include/g++-v3/bits/std_complex.h:539: Internal compiler
error.
/usr/local/lib3/include/g++-v3/bits/std_complex.h:539: Please submit a
full bug report.
/usr/local/lib3/include/g++-v3/bits/std_complex.h:539: See
<URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.

------------$ cat ice-1.cc
#include <complex>

int main() {
    std::complex<float> x, y, z;
    z = x*y;
    return 0;
}


More information about the Gcc-bugs mailing list