<div dir="ltr">Maybe the record decl is dependent? We should be hitting RequireCompleteType() in SemaType, and I would expect it to be complete at this point.<div><br></div><div>I have a few template tests, but I don't think I was creative enough with C++ to catch this. Can you make a minimal repro with deltamin or something?</div>
<div><br></div><div style>As a workaround, we could return MSIM_Unspecified for incomplete types that come here, but this is likely to have other edge case bugs because the size could shrink if the decl ever becomes complete and then we generate some member pointer code.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 6:44 PM, Joćo Matos <span dir="ltr"><<a href="mailto:ripzonetriton@gmail.com" target="_blank">ripzonetriton@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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:<div class="im">
<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></div>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>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>