summaryrefslogtreecommitdiffstats
path: root/test/CXX/temp/temp.decls/temp.friend/p3.cpp
blob: 4615bebe711fae6b9e5453172f98d8e094aa51e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: clang-cc -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;
  
  // FIXME: Diagnostic below could be (and was) better.
  template <class T> friend typename A<T>::Member; // expected-error {{classes or functions}}
};