internal error during template grokking

Martin Buchholz martin@xemacs.org
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 template-bug.cc
template-bug.cc:2: internal error: Segmentation fault
Please submit a full bug report,
...

$ cat template-bug.cc
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