public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/11353] New: Still problems with namespaces
@ 2003-06-27 16:05 bangerth at dealii dot org
2003-06-29 22:01 ` [Bug debug/11353] " drow at mvista dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bangerth at dealii dot org @ 2003-06-27 16:05 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11353
Summary: Still problems with namespaces
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
First: support for namespaces has become much much better, many thanks
for that!
Second: something is still going wrong, though I don't know whether it's
in gcc or in gdb. Here's a small example:
----------------------------------
struct X {
virtual int f() { return 1; }
};
namespace A {
struct X {
virtual int f() { return 2;}
};
}
void stop_gdb() {}
int main () {
X x;
A::X a_x;
stop_gdb();
}
------------------------------
Compiled with a recent CSV snapshot of gcc (2003-05-20), then going
into gdb yields this:
tmp/gg> c++ -ggdb x.cc
tmp/gg> gdb a.out
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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 "i386-redhat-linux-gnu"...
(gdb) b main
Breakpoint 1 at 0x80485c6: file x.cc, line 14.
(gdb) r
Starting program: /homes/csm2/bangerth/tmp/gg/a.out
Breakpoint 1, main () at x.cc:14
14 X x;
(gdb) n
15 A::X a_x;
(gdb)
16 stop_gdb();
(gdb) p x.f()
$1 = 1
(gdb) p a_x.f()
warning: can't find class named `A::X', as given by C++ RTTI
$2 = 2
Note that the result returned is quite right. It's just the warning that's
confusing me, and in particular that no similar warning is given for ::X.
Maybe someone can make sense out of this.
Thanks
W.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/11353] Still problems with namespaces
2003-06-27 16:05 [Bug debug/11353] New: Still problems with namespaces bangerth at dealii dot org
@ 2003-06-29 22:01 ` drow at mvista dot com
2003-07-31 16:31 ` pinskia at physics dot uc dot edu
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: drow at mvista dot com @ 2003-06-29 22:01 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11353
------- Additional Comments From drow at mvista dot com 2003-06-29 22:01 -------
Subject: Re: New: Still problems with namespaces
On Fri, Jun 27, 2003 at 04:05:26PM -0000, bangerth at dealii dot org wrote:
> (gdb) p a_x.f()
> warning: can't find class named `A::X', as given by C++ RTTI
This is primarily a bug in GDB.
Also, I believe GCC still doesn't emit DW_TAG_namespace; the patch was
reposted recently, I don't know what happened to it?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/11353] Still problems with namespaces
2003-06-27 16:05 [Bug debug/11353] New: Still problems with namespaces bangerth at dealii dot org
2003-06-29 22:01 ` [Bug debug/11353] " drow at mvista dot com
@ 2003-07-31 16:31 ` pinskia at physics dot uc dot edu
2003-08-23 0:35 ` dhazeghi at yahoo dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-31 16:31 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11353
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-31 16:31:55
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-31 16:31 -------
I do not know if this is a bug in gcc or gdb but I can still reproduce it in the mainline of
both gcc and gdb (both 20030730).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/11353] Still problems with namespaces
2003-06-27 16:05 [Bug debug/11353] New: Still problems with namespaces bangerth at dealii dot org
2003-06-29 22:01 ` [Bug debug/11353] " drow at mvista dot com
2003-07-31 16:31 ` pinskia at physics dot uc dot edu
@ 2003-08-23 0:35 ` dhazeghi at yahoo dot com
2004-01-01 23:49 ` pinskia at gcc dot gnu dot org
2004-04-01 15:58 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23 0:35 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11353
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/11353] Still problems with namespaces
2003-06-27 16:05 [Bug debug/11353] New: Still problems with namespaces bangerth at dealii dot org
` (2 preceding siblings ...)
2003-08-23 0:35 ` dhazeghi at yahoo dot com
@ 2004-01-01 23:49 ` pinskia at gcc dot gnu dot org
2004-04-01 15:58 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-01 23:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-01 23:49 -------
I think this is a gdb bug now as GCC produces DW_TAG_namespace.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-12-02 18:42:52 |2004-01-01 23:49:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11353
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/11353] Still problems with namespaces
2003-06-27 16:05 [Bug debug/11353] New: Still problems with namespaces bangerth at dealii dot org
` (3 preceding siblings ...)
2004-01-01 23:49 ` pinskia at gcc dot gnu dot org
@ 2004-04-01 15:58 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-01 15:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-01 15:58 -------
I no longer get a warning on the CVS version of gdb (2004-03-29-cvs) so this is fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11353
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-04-01 15:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-27 16:05 [Bug debug/11353] New: Still problems with namespaces bangerth at dealii dot org
2003-06-29 22:01 ` [Bug debug/11353] " drow at mvista dot com
2003-07-31 16:31 ` pinskia at physics dot uc dot edu
2003-08-23 0:35 ` dhazeghi at yahoo dot com
2004-01-01 23:49 ` pinskia at gcc dot gnu dot org
2004-04-01 15:58 ` 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).