On Tue, Apr 2, 2013 at 5:23 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:reid@kleckner.net" target="_blank">reid@kleckner.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
+MSInheritanceModel CXXRecordDecl::getMSInheritanceModel() const {<br>+ Attr *IA = this->getAttr<MSInheritanceAttr>();<br>+ if (IA)<br>+ return MSInheritanceAttrToModel(IA->getKind());<br>+ // If there was no explicit attribute, the record must be defined already, and<br>
+ // we can figure out the inheritance model from its other properties.<br>+ if (this->getNumVBases() > 0)<br>+ return IHM_Virtual;</blockquote></div><br>I am getting an assert here. Specifically, getNumVBases() asserts in data() because the record has no definition data. According to the comment it should be defined when reaching that line.<div>
<br></div><div>Any guesses why this is happening?</div>