diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/lookup.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/lookup.C | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/lookup.C b/gcc/testsuite/g++.old-deja/g++.jason/lookup.C deleted file mode 100644 index c6c44c373d9..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/lookup.C +++ /dev/null @@ -1,30 +0,0 @@ -// 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; -} |