gdb/27: ptype shows duplicate constructors and destructors
Sun Feb 18 17:38:00 GMT 2001

>Number:         27
>Category:       gdb
>Synopsis:       ptype shows duplicate constructors and destructors
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 18 17:38:01 PST 2001
>Release:        gdb cvs 2001-02-18
gcc cvs gcc-3_0-branch 2001-02-18
gdb cvs 2001-02-18
red hat 7 linux native
stabs debugging format

class A
    A (int x);
    int x_;

A::A (int x)
  : x_ (x)

int main( )
  A a(1);
  return 0;


Reading specs from /vittone/fsf/2001-02-18/gehman/install-gcc-native/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: /vittone/fsf/2001-02-18/source-gcc/configure --prefix=/vittone/fsf/2001-02-18/gehman/install-gcc-native --disable-shared
gcc version 3.0 20010217 (prerelease)


gdb 5.0
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) ptype A
type = class A {
    int x_;

    A & operator=(A const&);
    A(A &);
    void A(A const&);
    void A(A const&);
    void A(int);
    void A(int);



More information about the Gdb-prs mailing list