brintos

brintos / llvm-project-archived public Read only

0
0
Text · 362 B · 35ef3b5 Raw
13 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// C++0x N2914.3 4struct A {5  template<class T> void f(T);6  template<class T> struct X { };7};8 9struct 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}}12};13