[clang][Sema] Handle undeduced auto types in HeuristicResolver (#124236)
[llvm-project.git] / clang / test / CXX / dcl.dcl / basic.namespace / namespace.udecl / p5-cxx0x.cpp
blob35ef3b57b0cc2fe2c064f6ced5f4f8b09016a949
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // C++0x N2914.
4 struct A {
5 template<class T> void f(T);
6 template<class T> struct X { };
7 };
9 struct B : A {
10 using A::f<double>; // expected-error{{using declaration cannot refer to a template specialization}}
11 using A::X<int>; // expected-error{{using declaration cannot refer to a template specialization}}