summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash9.C
blob: d121d5dd10626576679300a4f58f52ba543e456f (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

// Origin: Volker Reichelt <reichelt@gcc.gnu.org>

// PR c++/10793: ICE in handling base class when the current class
// contains error.

template <typename> struct A {};
template <typename> struct A<INVALID> : A<int> { }; // { dg-error "not declared|invalid|token|extra" }