aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/class-template-decl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-04-20 07:12:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-04-20 07:12:26 +0000
commitc93e014cd43b08812370cfc8ef7bb7b92305f8fb (patch)
treeade50b5a591021ebf257579b3ea993351c4f6891 /test/SemaTemplate/class-template-decl.cpp
parentb2f245e77de13c6619923d6569a947e6dcdd0666 (diff)
Replace r155185 with a better fix, which also addresses PR12557. When looking
up an elaborated type specifier in a friend declaration, only look for type declarations, per [basic.lookup.elab]p2. If we know that the redeclaration lookup for a friend class template in a dependent context finds a non-template, don't delay the diagnostic to instantiation time. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/class-template-decl.cpp')
-rw-r--r--test/SemaTemplate/class-template-decl.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/SemaTemplate/class-template-decl.cpp b/test/SemaTemplate/class-template-decl.cpp
index 4d69ac4f71..bd2accee3c 100644
--- a/test/SemaTemplate/class-template-decl.cpp
+++ b/test/SemaTemplate/class-template-decl.cpp
@@ -94,13 +94,3 @@ namespace rdar9676205 {
};
};
}
-
-namespace Redecl {
- struct S {
- int packaged_task;
- template<typename> class future {
- template<typename> friend class packaged_task;
- };
- future<void> share;
- };
-}