blob: c6c44c373d9f7523486163412c1d4537767a5ca8 [file] [log] [blame]
// PRMS Id: 4357
// Bug: g++ forgets to clear out push/popclass cache stuff when instantiating
// templates.
// Build don't link:
template <class T> class ccHandle { };
class cc_GStack
{
static cc_GStack* freeList;
};
// OK if ccGStack is not derived from ccHandle<something>
class ccGStack : public ccHandle<int> { };
struct S { };
S* freeList;
class X
{
public:
void foo();
};
void X::foo()
{
S m;
freeList = &m;
}