aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-14.C
blob: 52f2201a03d3683c4132298d7249fb7467994930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Origin: PR c++/51145
// { dg-do compile { target c++11 } }

struct A {};

template<class>
using X = A;

struct X<int>* px; // { dg-error "using\[^\n\r\]*alias\[^\n\r\]*specialization\[^\n\r\]*X<int>\[^\n\r\]*after\[^\n\r\]*struct|invalid type in declaration before\[^\n\r\]*;" }

template<int>
using Y = A;

struct Y<0>* py;// { dg-error "alias\[^\n\r\]*specialization\[^\n\r\]*Y<0>\[^\n\r\]*after\[^\n\r\]*struct|invalid type in declaration before\[^\n\r\]*;" }