summaryrefslogtreecommitdiff
path: root/clang/test/CXX/temp/temp.decls/temp.friend/p3.cpp
blob: 0b2a25e9876be66d83d7267413269f779bca92e4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify %s

template <class T> class A {
  typedef int Member;
};

class B {
  template <class T> friend class A;
  template <class T> friend class Undeclared;
  
  template <class T> friend typename A<T>::Member; // expected-error {{friend type templates must use an elaborated type}}
};