]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/alias-decl-1.C
c52ab46aa5e5c62d80d3ef2a4175ea6c6d2e3c42
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-1.C
1 // { dg-do compile { target c++11 } }
2
3 // These also represent tests for printing alias declarations and
4 // their instantiations.
5
6 template<class T, class U> struct A0 {};
7 template<class T, class U> using AA0 = A0<T, U>;
8 template<class T> struct AA0<int, T> {}; // { dg-error "specialization" }
9
10 template <class U> using Ptr = U*;
11 template<class U> struct Ptr<U*> {}; // { dg-error "specialization" }
12
13 struct A {
14 using A = int;//{ dg-error "nested|has|same name as|class|in which|declared" }
15 };