public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24155] New: Does not understands explicit destructor call A::~A()
@ 2005-09-30 23:37 mon at hks dot com
  2005-09-30 23:41 ` [Bug c++/24155] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: mon at hks dot com @ 2005-09-30 23:37 UTC (permalink / raw)
  To: gcc-bugs

The latest GNU G++ compiler, distributed with latest RedHat and SUSE
distributions, does  not understand explicit destructor calls of the
form "A::~A()". Here is an example:


class Pool {
public:
    ~Pool();
    void Delete();
};

Pool::~Pool()
{
}

void Pool::Delete()
{
    Pool::~Pool();
}

>>>   g++ -c mem.C
mem.C: In member function `void Pool::Delete()':
mem.C:14: error: no matching function for call to `Pool::Pool()'
mem.C:9: note: candidates are: Pool::~Pool()

It looks like the tilda (~) is throwing it off.

Additional version information:

C++ version 3.4.3 20050227 (Red Hat 3.4.3-22.1) (i386-redhat-linux)

Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1)
 /usr/libexec/gcc/i386-redhat-linux/3.4.3/cc1plus -E -quiet -v -D_GNU_SOURCE
mem.C -o mem.ii

This was identified on Red Hat Enterprise Linux AS release 4 (Nahant Update 1)

-- 
           Summary: Does not understands explicit destructor call A::~A()
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mon at hks dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: 3.4.3 20050227 (Red Hat 3.4.3-22.1)
  GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24155


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/24155] Does not understands explicit destructor call A::~A()
  2005-09-30 23:37 [Bug c++/24155] New: Does not understands explicit destructor call A::~A() mon at hks dot com
@ 2005-09-30 23:41 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-30 23:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-30 23:41 -------


*** This bug has been marked as a duplicate of 12333 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24155


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-30 23:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-30 23:37 [Bug c++/24155] New: Does not understands explicit destructor call A::~A() mon at hks dot com
2005-09-30 23:41 ` [Bug c++/24155] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).