OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [alias-decl-16.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Origin PR c++/51143
2
// { dg-options "-std=c++11" }
3
 
4
using A0 = struct B0 { void f() {} };
5
 
6
template
7
using A1 =
8
    struct B1 { // { dg-error "types may not be defined in alias template" }
9
        static auto constexpr value = N;
10
    };
11
 
12
A1<0> a1;
13
 
14
template
15
using A2 =
16
    struct B2 {  // { dg-error "types may not be defined in alias template" }
17
        void f(T){}
18
    };
19
 
20
A2 a2;
21
 
22
template
23
using A3 =
24
    enum B3 {b = 0;}; //{ dg-error "types may not be defined in alias template" }
25
 
26
A3 a3;
27
 
28
int main() { }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.