diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-08 18:59:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-08 18:59:56 +0000 |
commit | cd556eb26580e58c4b1220ba443890e9f8cda5ae (patch) | |
tree | c6c8df9fc00090d7eceda55997efe021c4ed84fa /clang/lib/Sema/SemaDeclCXX.cpp | |
parent | f7a60a8e0148b16cd811472ac42b2b947be43ec6 (diff) | |
download | bcm5719-llvm-cd556eb26580e58c4b1220ba443890e9f8cda5ae.tar.gz bcm5719-llvm-cd556eb26580e58c4b1220ba443890e9f8cda5ae.zip |
Issue a diagnostic if we see a templated friend declaration that we do not
support.
llvm-svn: 194273
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 8b04f8dfcf5..660641eec6c 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -11410,6 +11410,8 @@ Decl *Sema::ActOnTemplatedFriendTag(Scope *S, SourceLocation FriendLoc, // Handle the case of a templated-scope friend class. e.g. // template <class T> class A<T>::B; // FIXME: we don't support these right now. + Diag(NameLoc, diag::warn_template_qualified_friend_unsupported) + << SS.getScopeRep() << SS.getRange() << cast<CXXRecordDecl>(CurContext); ElaboratedTypeKeyword ETK = TypeWithKeyword::getKeywordForTagTypeKind(Kind); QualType T = Context.getDependentNameType(ETK, SS.getScopeRep(), Name); TypeSourceInfo *TSI = Context.CreateTypeSourceInfo(T); |