internal error during template grokking

Martin Buchholz
Wed Jul 17 10:06:00 GMT 2002

g++ is understandably confused by the following code.
A nice tiny test case, suitable for a regression test suite.

Self-explanatory shell transcript follows:

$ g++ -c internal error: Segmentation fault
Please submit a full bug report,

$ cat
template <class T> class Foo;
template <class T> class Foo<T>::Bleh;

$ g++ --version
g++ (GCC) 3.1

More information about the Gcc-bugs mailing list