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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [static31.C] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/32674
2
 
3
class C
4
{
5
  static const int j = 3;
6
};
7
 
8
template class A
9
{
10
  static const int i1;
11
  static const int i2;
12
  static const int i3;
13
  static const int i4;
14
};
15
 
16
template const int A::i1(C::j);
17
template const int A::i2 = C::j;
18
template const int A::i3(C::j, 5); // { dg-error "compound expression" }
19
template const int A::i4 = (C::j, 7);

powered by: WebSVN 2.1.0

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