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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [static31.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// PR c++/32674
// PR c++/32674
class C
class C
{
{
  static const int j = 3;
  static const int j = 3;
};
};
template class A
template class A
{
{
  static const int i1;
  static const int i1;
  static const int i2;
  static const int i2;
  static const int i3;
  static const int i3;
  static const int i4;
  static const int i4;
};
};
template const int A::i1(C::j);
template const int A::i1(C::j);
template const int A::i2 = C::j;
template const int A::i2 = C::j;
template const int A::i3(C::j, 5); // { dg-error "compound expression" }
template const int A::i3(C::j, 5); // { dg-error "compound expression" }
template const int A::i4 = (C::j, 7);
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.