This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

internal error during template grokking


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
...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]