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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb20.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Error: ICE on 2.7.2.3 and EGCS 1.0.0.
3
 
4
template
5
struct meta_max {
6
    enum { max = (N1 > N2) ? N1 : N2 };
7
};
8
 
9
struct X {
10
    enum {
11
       a = 0,
12
       n = 0
13
    };
14
};
15
 
16
template
17
struct Y {
18
 
19
    enum {
20
       a = T1::a + T2::a + T3::a,
21
       n = meta_max::max, T3::n>::max
22
    };
23
};
24
 
25
template
26
struct Z {
27
    enum {
28
       a = T::a,
29
       n = T::n
30
    };
31
};
32
 
33
Z > z;

powered by: WebSVN 2.1.0

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