Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 21631
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Alastair Tse (RETIRED) <liquidx@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bernd Martin Wollny <bernd@wiloyee.shnet.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 21631 depends on: Show dependency tree
Bug 21631 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-05-24 15:35 0000
Hello , 

in the class Ptr (include/Ptr.h Ptr.cxx) are the member funtction unref undefined. 

// Class defination 
----------------------------------------------------------------------
template<class T>
class Ptr {
public:
  Ptr() : ptr_(0) { }
  Ptr(T *ptr);
  ~Ptr();
  Ptr(const Ptr<T> &);
  Ptr<T> &operator=(const Ptr<T> &);
  Ptr<T> &operator=(T *);
  T *pointer() const { return ptr_; }
  T *operator->() const { return ptr_; }
  T &operator*() const { return *ptr_; }
  void swap(Ptr<T> &p) {
    T *tem = p.ptr_;
    p.ptr_ = ptr_;
    ptr_ = tem;
  }
  Boolean isNull() const { return ptr_ == 0; }
  // operator const void *() const { return ptr_; }
  void clear();
  Boolean operator==(const Ptr<T> &p) const {
    return ptr_ == p.ptr_;
  }
  Boolean operator!=(const Ptr<T> &p) const {
    return ptr_ != p.ptr_;
  }

// First usage ..................
template<class T>
Ptr<T>::~Ptr()
{
  if (ptr_) {
    if (ptr_->unref())
      delete ptr_;
    ptr_ = 0;
  }
}


it seemd that the base class are missing 

bye
  bernd

------- Comment #1 From Andreas Wege 2003-05-27 07:55:39 0000 -------
Had the same problem. This seems to happen only with gcc 3.3:

http://sourceforge.net/tracker/index.php?func=detail&aid=742608&group_id=2115&atid=102115

------- Comment #2 From Andreas Wege 2003-05-27 11:17:11 0000 -------
There is also a patch on the page:

http://sourceforge.net/tracker/index.php?func=detail&aid=742214&group_id=2115&atid=302115

------- Comment #3 From Alastair Tse (RETIRED) 2003-06-02 05:48:11 0000 -------
thanks andreas

i'll look into putting this patch into portage shortly.

------- Comment #4 From Alastair Tse (RETIRED) 2003-06-02 06:06:20 0000 -------
i've added the gcc 3.3 patch to opensp-1.5-r1 now. can the bug reporter please
try and emerge it again?

thanks

------- Comment #5 From Bernd Martin Wollny 2003-06-05 06:19:30 0000 -------
Hello, 

sorry for the delay, It seemd that the Problem are solved thank you 


bye
bernd

------- Comment #6 From Alastair Tse (RETIRED) 2003-06-05 06:38:10 0000 -------
thanks for the confirmation

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug