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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [static1.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// PR c++/9574
2
// Origin: fche@redhat.com and bangerth@dealii.org
3
// The new parser ICE on this test and then it could
4
//  not find z in bar::bar().
5
 
6
// { dg-do compile }
7
 
8
struct X {
9
  void operator[](const int& __k);
10
};
11
struct foo {
12
  static X x;
13
};
14
struct bar {
15
  int z;
16
  bar () { foo::x[z]; };
17
};

powered by: WebSVN 2.1.0

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