This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal error during template grokking
- From: Martin Buchholz <martin at xemacs dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Jul 2002 08:59:54 -0700
- Subject: internal error during template grokking
- Reply-to: martin at xemacs dot org
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
...