In the latest episode of "Deserializing bugs caused by accessors" the series reached...
[clang.git] / test / SemaTemplate / qualified-id.cpp
blob29eab89d84f557b83ee79ad7daf0f7fd719ea7b5
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // PR5061
4 namespace a {
5 template <typename T> class C {};
7 namespace b {
8 template<typename T> void f0(a::C<T> &a0) { }
12 namespace test1 {
13 int a = 0;
14 template <class T> class Base { };
15 template <class T> class Derived : public Base<T> {
16 int foo() {
17 return test1::a;
22 namespace test2 {
23 class Impl {
24 public:
25 int foo();
27 template <class T> class Magic : public Impl {
28 int foo() {
29 return Impl::foo();
34 namespace PR6063 {
35 template <typename T> void f(T, T);
37 namespace detail
39 using PR6063::f;
42 template <typename T>
43 void g(T a, T b)
45 detail::f(a, b);