From 952eddef9aff85b1e92626e89baaf7a360e2ac85 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 22 Dec 2013 00:07:40 +0000 Subject: Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3): https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841 --- test/SemaTemplate/instantiate-using-decl.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test/SemaTemplate/instantiate-using-decl.cpp') diff --git a/test/SemaTemplate/instantiate-using-decl.cpp b/test/SemaTemplate/instantiate-using-decl.cpp index 1bfcb7a..a6a4ea0 100644 --- a/test/SemaTemplate/instantiate-using-decl.cpp +++ b/test/SemaTemplate/instantiate-using-decl.cpp @@ -80,3 +80,27 @@ namespace test3 { b.f1(); } } + +namespace PR16936 { + // Make sure both using decls are properly considered for + // overload resolution. + template struct A { + void access(int); + }; + template struct B { + void access(); + }; + template struct X : public A, public B { + using A::access; + using B::access; + + void f() { + access(0); + } + }; + + void f() { + X x; + x.f(); + } +} -- cgit v1.1