Bug 8602 - int operator int() with gcc 2.95.3 -gstabs+
Summary: int operator int() with gcc 2.95.3 -gstabs+
Status: RESOLVED WONTFIX
Alias: None
Product: gdb
Classification: Unclassified
Component: c++ (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-31 20:18 UTC by Michael Elizabeth Chastain
Modified: 2010-03-12 21:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Elizabeth Chastain 2003-12-31 20:18:00 UTC
[Converted from Gnats 1497]

classes.exp gives this output:

ptype class Foo^M
type = class Foo {^M
  public:^M
    int x;^M
    int y;^M
    static int st;^M
^M
    Foo & operator=(Foo const &);^M
    Foo(Foo const &);^M
    Foo(int, int);^M
    int operator!(void);^M
    int operator int(void);^M
    int times(int);^M
}^M

"int operator int" is wrong.

This happens with gcc 2.95.3 -gstabs+.
gcc v3 -gstabs+ and all dwarf-2 are okay.
This happens with gdb 6.0.
It still happens with gdb HEAD.

This may be related to gdb/1471, which was another case of "int operator int ()".  But gdb/1471 did not happen in gdb 6.0, and has been fixed in gdb HEAD.  And gdb 1471 happened with gcc v3 -gstabs+.

Release:
gdb 6.0

Environment:
target=native, host=i686-pc-linux-gnu, osversion=redhat-8.0
gdb=6.0, gcc=2.95.3, binutils=2.14, glibc=2.2.93-5-rh
gformat=stabs+, glevel=2

How-To-Repeat:
Run gdb.cp/classes.exp with gcc 2.95.3, -gstabs+.
Look at "ptype class Foo".
Comment 1 Keith Seitz 2010-03-12 21:19:19 UTC
Given that GCC 2.95.3 is quickly approaching its tenth birthday (next year), I'm
going to go out on a limb here and say that we're not going to fix this, since
it has been fixed in just about every version of GDB/GCC since then.

If it is really that important to get this working, please re-open this bug or
submit a new one.