llvm-for-llvmta/tools/clang/test/CXX/temp/temp.decls/temp.friend/p3.cpp

13 lines
322 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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}}
};