Skip to content
Snippets Groups Projects
Commit 55dc95b6 authored by Douglas Gregor's avatar Douglas Gregor
Browse files

Add test for C++ [temp.friend]p8, which bans partial specializations from being friends

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122335 91177308-0d34-0410-b5e6-96231b3b80d8
parent b0ee93cf
No related branches found
No related tags found
No related merge requests found
// RUN: %clang_cc1 -fsyntax-only -verify %s
template<class T> class A { };
class X {
template<class T> friend class A<T*>; // expected-error{{partial specialization cannot be declared as a friend}}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment