This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/14235] verbose RTTI message polluting traces
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 15 Feb 2013 21:26:08 +0000
- Subject: [Bug python/14235] verbose RTTI message polluting traces
- Auto-submitted: auto-generated
- References: <bug-14235-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14235
--- Comment #9 from Tom Tromey <tromey at redhat dot com> 2013-02-15 21:26:08 UTC ---
(In reply to comment #8)
> It isn't completely clear to me that this would work.
> For example, could there be 2 symbols with this name in different CUs?
> One in a function and one in a namespace?
Due to name mangling differences it is possible to create a file like that.
This compiles and links just fine:
q1.cc:
namespace main {
struct Z {
virtual void x();
};
};
void main::Z::x () { }
main::Z z;
int f() { return 0; }
q2.cc:
extern int f();
int main()
{
struct Z { virtual ~Z() { } };
Z z;
return f();
}
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.