Description of problem: Gnu typeof entension used to create polymorphic return types causes the compiler to baulk Version-Release number of selected component (if applicable): gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) How reproducible: Compile attached file. Steps to Reproduce: 1. Compile attached file thus: g++ -g -Wall matrix.cpp 2. 3. Actual results: matrix.cpp: In function `int main()': matrix.cpp:723: Internal compiler error in write_type, at cp/mangle.c:1458 Expected results: Silent compile, generating a.out Additional info: 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.
http://gcc.gnu.org/PR11578
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. ***