This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/9170] Unable to locate constructors with forward-declared classes
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 10 Feb 2010 22:32:09 -0000
- Subject: [Bug c++/9170] Unable to locate constructors with forward-declared classes
- References: <20060107214801.9170.thor@math.tu-berlin.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2010-02-10 22:32 -------
I tried to reproduce this but couldn't.
I tried compiling two files like so:
== main.cc
class K;
extern K *getk();
int main () {
K* k = getk();
return 0;
}
== k.ccclass K {
public:
K ();
int z;
};
K::K () {
z = 25;
}
K *getk() {
return new K;
}
I figured this was most likely to get the forward declaration read in
first.
On trunk I get weird behavior, e.g., "break K::K" does nothing at all.
This doesn't sound like your bug, though. Maybe the crash has been fixed.
It would be most helpful if you had a simple way to reproduce this.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9170
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.