[cfe-dev] abort calling getTypeSize

Dmitri Gribenko gribozavr at gmail.com
Mon Feb 25 12:08:13 PST 2013

On Mon, Feb 25, 2013 at 10:03 PM, Peeter Joot <peeter.joot at gmail.com> wrote:
> Okay, that worked nicely for that source.  Going back to the source I
> started with, I hit a different abort, in llvm_unreachable_internal()
> instead:
> Should not see dependent types
> #11 0x0000000000d6775f in getFieldOffset (C=..., FD=0x3919600) at
> /home/hotellnx94/peeterj/clang/sources/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp:2582
> #12 0x0000000000d677bc in clang::ASTContext::getFieldOffset (this=0x1b38300,
> VD=0x3919600)
>     at
> /home/hotellnx94/peeterj/clang/sources/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp:2589
> #13 0x0000000000464785 in MyASTVisitor::myVisitFieldDecl
> (this=0x7fffffffb700, classname=..., f=0x3919600) at ./memberdumper.h:12

I guess you are calling getFieldOffset for a field that has a
dependent type?  You could dump the record or the field to see what it
is (->dump()).


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the cfe-dev mailing list