This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/9170] Unable to locate constructors with forward-declared classes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]