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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [lookup.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// PRMS Id: 4357
3
// Bug: g++ forgets to clear out push/popclass cache stuff when instantiating
4
// templates.
5
 
6
template  class ccHandle { };
7
 
8
class cc_GStack
9
{
10
  static cc_GStack* freeList;
11
};
12
 
13
// OK if ccGStack is not derived from ccHandle
14
class ccGStack : public ccHandle { };
15
 
16
struct S { };
17
 
18
S* freeList;
19
 
20
class X
21
{
22
public:
23
    void foo();
24
};
25
 
26
void X::foo()
27
{
28
  S m;
29
  freeList = &m;
30
}

powered by: WebSVN 2.1.0

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