]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/alias-decl-16.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-16.C
CommitLineData
3945f48c 1// Origin PR c++/51143
4b2e63de 2// { dg-do compile { target c++11 } }
3945f48c
DS
3
4using A0 = struct B0 { void f() {} };
5
6template<int N>
7using A1 =
8 struct B1 { // { dg-error "types may not be defined in alias template" }
9 static auto constexpr value = N;
10 };
11
12A1<0> a1;
13
14template<class T>
15using A2 =
16 struct B2 { // { dg-error "types may not be defined in alias template" }
17 void f(T){}
18 };
19
20A2<bool> a2;
21
22template<class T>
23using A3 =
24 enum B3 {b = 0;}; //{ dg-error "types may not be defined in alias template" }
25
62defc56 26A3<int> a3; // { dg-error "'A3' does not name a type" }
3945f48c
DS
27
28int main() { }
This page took 4.829271 seconds and 5 git commands to generate.