diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-20 01:31:00 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-20 01:31:00 +0000 |
commit | a31a89a38e8a1eec567f190611b97902029e722c (patch) | |
tree | 0d48f283a883339d687e2002d2f08c7d3e7f8c90 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | b6d516e7bd413d113a782f10790d8ddce364feb2 (diff) | |
download | bcm5719-llvm-a31a89a38e8a1eec567f190611b97902029e722c.tar.gz bcm5719-llvm-a31a89a38e8a1eec567f190611b97902029e722c.zip |
Per C++11 [class.friend]p3, the 'friend' keyword must appear first in a
non-function friend declaration. Patch by Josh Magee!
llvm-svn: 164273
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 21ddd473636..8c1722fdedb 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -510,7 +510,7 @@ Decl *TemplateDeclInstantiator::VisitFriendDecl(FriendDecl *D) { if (!InstTy) return 0; - FriendDecl *FD = SemaRef.CheckFriendTypeDecl(D->getLocation(), + FriendDecl *FD = SemaRef.CheckFriendTypeDecl(D->getLocStart(), D->getFriendLoc(), InstTy); if (!FD) return 0; |