summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-02-07 03:11:11 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-02-07 03:11:11 +0000
commit2b5605751786a85f05da3b0a344aa832e582080f (patch)
tree6cc85ab594945f87cf525e7a5bbddff1b005d976 /clang/lib/AST
parent635c2c4378c0ad112899810cb39248d4cc95e0cb (diff)
downloadbcm5719-llvm-2b5605751786a85f05da3b0a344aa832e582080f.tar.gz
bcm5719-llvm-2b5605751786a85f05da3b0a344aa832e582080f.zip
[modules] Treat friend declarations that are lexically within a dependent
context as anonymous for merging purposes. They can't be found by their names, so we merge them based on their position within the surrounding context. llvm-svn: 228485
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/DeclBase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 8862f9f5c62..5f4aa113b7d 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -846,6 +846,10 @@ bool DeclContext::isDependentContext() const {
return getLexicalParent()->isDependentContext();
}
+ // FIXME: A variable template is a dependent context, but is not a
+ // DeclContext. A context within it (such as a lambda-expression)
+ // should be considered dependent.
+
return getParent() && getParent()->isDependentContext();
}
OpenPOWER on IntegriCloud