FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p3538b.C
blobb9bead04594061b1e372e0bb80273b4c4f616787
1 // Build don't link:
2 // prms-id: 3538
4 // This tests for an ambiguous conversion of the this pointer (going
5 // down to DECL_CONTEXT of a FUNCTION_DECL.
7 class ccObjectInfo
9 public:
10     virtual const ccObjectInfo& repInvariant (int);
13 template<class T>
14 class ccHandle : public  ccObjectInfo
16 protected:
17   T* p;
18 public:
19   virtual const ccObjectInfo& repInvariant (int);
22 template <class T>
23 const ccObjectInfo& ccHandle<T>::repInvariant (int)
24 { return p->repInvariant(1); }
26 class ccHandleBase : public ccObjectInfo
27 {};
29 class cc_CircleHdl : public virtual ccHandleBase, public ccObjectInfo
30 {                               // WARNING - 
31 public:
32   virtual const ccObjectInfo& repInvariant (int);
35 class ccCircleHdl : public ccHandle <cc_CircleHdl> {};