This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
c++/1511: lookup_transparent_type sometimes fails in presence of classes in namespaces
- From: carlton at bactrian dot org
- To: gdb-gnats at sources dot redhat dot com
- Date: 14 Jan 2004 18:00:32 -0000
- Subject: c++/1511: lookup_transparent_type sometimes fails in presence of classes in namespaces
- Reply-to: carlton at bactrian dot org
>Number: 1511
>Category: c++
>Synopsis: lookup_transparent_type sometimes fails in presence of classes in namespaces
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 14 18:08:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: carlton@bactrian.org
>Release: 2004-01-14-cvs
>Organization:
>Environment:
any OS, DWARF-2 (though other debug formats have their
own issue), GCC through 3.3.x (but hopefully not 3.4)
>Description:
lookup_transparent_type can have problems with nested
classes: given a class B nested inside a namespace A,
then, if the compiler doesn't generate DW_TAG_namespace,
the debug info will claim that the class is named
B instead of A::B. If we have a full definition for
A::B, we can figure out the correct name by looking
at mangled names of methods; if we only have an
abstract declaration, though, then we think that
the class is just named 'B', and lookup_transparent_type
has no way of finding the full definition (which we
correctly call A::B).
I can't think of anything we can do about this.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: