• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems since migrating to xcode 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems since migrating to xcode 2


  • Subject: Problems since migrating to xcode 2
  • From: Simon Harms <email@hidden>
  • Date: Thu, 26 May 2005 13:49:38 +1000

Hey guys,

We are having a weird unexplained problem when upgrading from GCC 3.3 to GCC 4.0.

We have a template class LRef<T> like this...

template <class T>
class LRef {
   ... 

protected:
   T* p;
};

and a derived class like this...

template <class T>
class LPtr:public LRef<T> {
   ~LPtr();
   ... 
};

when we attempt to access a base template class' member from the derived class like this...
 
template <class T>
inline LPtr<T>::~LPtr()
{
   delete p;
}

We get the error...


/Volumes/Shares/SourceCode/llib/include/llib/gen/ptr.h:261: error: 'p' was not declared in this scope


This only happens with the new GCC 4 and Xcode 2. It never happened before. Any ideas?



Simon Harms

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: C++ template pointers vs. objects
  • Next by Date: Re: C++ template pointers vs. objects
  • Previous by thread: Re: C++ template pointers vs. objects
  • Next by thread: Re: Problems since migrating to xcode 2
  • Index(es):
    • Date
    • Thread