aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/injected-class-name-crash.cpp
blob: a044ba064b58e479c7cf03dbf305679fdab30030 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -fsyntax-only -verify %s

template <class T>
struct X : public Foo<Bar { // expected-error {{unknown template name 'Foo'}} expected-error {{use of undeclared identifier 'Bar'}} expected-note {{to match this '<'}}
  X();
}; // expected-error {{expected '>'}} expected-error {{expected '{' after base class list}}


template <class T>
X<T>::X() {
}