Hi Roman,<div><br></div><div>I'd like to help with this but as Eli says I need some more information. Could we get a stack trace and a -E processed input file (preferably in a bugzilla)?<br><br><div>Thanks, </div><div>
 - Daniel</div><div><br></div><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 12:17 PM, Roman Divacky <span dir="ltr"><<a href="mailto:rdivacky@freebsd.org">rdivacky@freebsd.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi<br>
<br>
I got clang often crashing on this:<br>
<br>
#0  0x0896de5c in llvm::isa_impl<clang::TagType, clang::Type> (Val=@0x9234f90) at Casting.h:54<br>
54        return To::classof(&Val);<br>
(gdb) p Val<br>
$1 = (const clang::Type &) @0x9234f90: {_vptr$Type = 0x8fdd9d8, CanonicalType = {ThePtr = 153309072}, TC = 12}<br>
<br>
the code in question is:<br>
<br>
te <typename To, typename From><br>
inline bool isa_impl(const From &Val) {<br>
     return To::classof(&Val);<br>
}<br>
<br>
where clang::TagType::classof is<br>
<br>
  static bool classof(const Type *T) { return T->getTypeClass() == Tagged; }<br>
<br>
and for clang::Type the getTypeClass method is:<br>
<br>
  TypeClass getTypeClass() const { return static_cast<TypeClass>(TC); }<br>
<br>
I also dont see any place where it can crash :(<br>
<br>
also, there is a strange thing that gdb shows me that Val is clang::Type which has TC == 5<br>
but:<br>
<br>
(gdb) p Val->TC<br>
$2 = 12<br>
<br>
I also would like to add that removing "-g" from clang's options makes this crash go away<br>
<br>
can you help me?<br>
<br>
thnx!<br>
<br>
roman<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>