summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-elab-type-specifier.cpp
blob: 5db9b56c21a47c255af581cba9bafb42adb7a128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics

// PR5681
template <class T> struct Base {
  struct foo {};
  int foo;
};

template <class T> struct Derived : Base<T> {
  typedef struct Base<T>::foo type;
};

template struct Derived<int>;