Description of Problem: When I compile a sample program below ---- cut here ---- template <class T> class A { T *d; public: void f() { (T[10])d; } }; ---- cut here ---- the compiler fails by throwing Segmentation fault. The code itself does nothing, but as far as I know, it seems semantically ok. I can typecast pointer to an array, can I? How Reproducible: Everytime Steps to Reproduce: 1. compile the code. Actual Results: bugtest.cpp: In method `void A<T>::f ()': bugtest.cpp:3: Internal error: Segmentation fault. Expected Results: Clean compilation or atleast more descriptive error message. Additional Information: Code compiles fine with IBM C++ for OS/2.
Seems to be fixed with http://gcc.gnu.org/ml/gcc-patches/2001-01/msg00941.html which will appear in gcc-2.96-96.