ICE in libstdc++-v3 std_complex.h

Petter Urkedal petter@matfys.lth.se
Sun Oct 31 23:03:00 GMT 1999


Sorry if i'm to active here, but i have a much prettier test case
for this bug.  And it is tested on today's gcc CVS.
 -petter.


[---]$ g++ -v
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.96/specs
gcc version 2.96 19991025 (experimental)

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

[---]$ g++ bug2.cc
bug2.cc: In function `int main ()':
bug2.cc:7: Internal compiler error.
bug2.cc:7: Please submit a full bug report.
bug2.cc:7: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport >
for instructions.

[---]$ cat bug2.cc
struct cfloat { __complex__ float x; };

cfloat f(const cfloat& x) { return cfloat(x); }

int main() {
    cfloat x;
    f(x);
}



More information about the Gcc-bugs mailing list