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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [forw_enum10.C] - Blame information for rev 715

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-std=c++0x" }
3
 
4
//This error is diagnosed at instantiation time
5
template struct S1
6
{
7
    enum E : T;   // { dg-error "previous definition" }
8
    enum E : int;     // { dg-error "different underlying type" }
9
};
10
template struct S1; // { dg-message "required from here" }
11
 
12
template struct S2
13
{
14
    enum E : T;
15
    enum E : T;
16
};
17
template struct S2;
18
 
19
template struct S3
20
{
21
    enum E : T1;
22
    enum E : T2;
23
};
24
template struct S3;
25
 
26
template struct S4
27
{
28
    enum E : T1; // { dg-error "previous definition" }
29
    enum E : T2; // { dg-error "different underlying type" }
30
};
31
template struct S4; // { dg-message "required from here" }

powered by: WebSVN 2.1.0

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