Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / expr / expr.prim / expr.prim.id / expr.prim.id.qual / p3.cpp
blobc73ffa55a26a31e4991e2150ebf3a3117e7090d3
1 // RUN: %clang_cc1 -verify %s
3 template<typename T>
4 struct A {
5 void f();
6 };
8 template<typename T>
9 using B = A<T>;
11 template<typename T>
12 void B<T>::f() { } // expected-warning {{a declarative nested name specifier cannot name an alias template}}
14 template<>
15 void B<int>::f() { } // ok, template argument list of simple-template-id doesn't involve template parameters
17 namespace N {
19 template<typename T>
20 struct D {
21 void f();
24 template<typename T>
25 using E = D<T>;
28 template<typename T>
29 void N::E<T>::f() { } // expected-warning {{a declarative nested name specifier cannot name an alias template}}