Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/alias-decl-1.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile { target c++11 } } // These also represent tests for printing alias declarations and // their instantiations. template<class T, class U> struct A0 {}; template<class T, class U> using AA0 = A0<T, U>; template<class T> struct AA0<int, T> {}; // { dg-error "specialization" } template <class U> using Ptr = U*; template<class U> struct Ptr<U*> {}; // { dg-error "specialization" } struct A { using A = int; // { dg-error "11:ISO C\\+\\+ forbids nested type .A." } // { dg-error "11:.using A = int. has the same name as" "" { target c++11 } .-1 } };