Red Hat Bugzilla – Bug 99071
Gnu __typeof__ extension to g++ throws internal compiler error
Last modified: 2007-04-18 12:55:38 EDT
Description of problem:
Gnu typeof entension used to create polymorphic return types causes the compiler
Version-Release number of selected component (if applicable):
gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Compile attached file.
Steps to Reproduce:
1. Compile attached file thus:
g++ -g -Wall matrix.cpp
matrix.cpp: In function `int main()':
matrix.cpp:723: Internal compiler error in write_type, at cp/mangle.c:1458
Silent compile, generating a.out
The file throws the same error under DOS, running gxx (gcc version 2.23), but
said machine is not available from home, where I now am.
Created attachment 92901 [details]
Source file that generates compiler error
Source file that generates compiler error when compiled with g++;
"g++ matrix.cpp" is sufficient to generate the error.
Still fails in gcc 4.0. There is sporadic activity on the gcc PR.
*** Bug 106564 has been marked as a duplicate of this bug. ***