[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".
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.