Closed GoogleCodeExporter closed 9 years ago
I've just started noticing these as well. There was a recent clang change to
default constructors (to deal with c++0x, I think), that probably started
triggering this.
I looked into this, and it looks like we need to check both: defined
constructor to see if clang has already done this work for us, and user-defined
constructor to see if we ought to be doing the work at all.
Even after this, I see another crash in the destructor instantiation. It seems
the problem is logic in iwyu that tries to instantiate these constructors and
destructors even when the class is not fully defined (because it's a dependent
type). I think it's only correct to instantiate constructors/destructors when
the
type is being instantiated, so I added a check for that too. All tests pass
now.
Fixed in r230.
Original comment by csilv...@gmail.com
on 15 May 2011 at 10:19
Original issue reported on code.google.com by
Ehren.M
on 15 May 2011 at 6:34Attachments: