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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash2.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "" }
2
 
3
template 
4
class A
5
{
6
public:
7
  static const EnumType size = max; // { dg-error "" }
8
  int table[size]; // { dg-error "constant" }
9
};
10
template 
11
const EnumType A::size;
12
 
13
 
14
namespace N
15
{
16
enum E { max = 5 };
17
 
18
struct B
19
{
20
  A a;
21
};
22
 
23
}
24
 
25
int
26
main()
27
{
28
  N::B b;
29
 
30
  return 0;
31
}

powered by: WebSVN 2.1.0

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