[cfe-dev] New crash in codegen?

Eli Friedman eli.friedman at gmail.com
Tue Feb 5 01:01:30 PST 2008


Testcase:

struct MpegEncContext;
typedef struct MpegEncContext {int pb;} MpegEncContext;
static void x(void) {MpegEncContext s; s.pb;}

Crashes for me in codegen on trunk, but I'm not sure if it's just my
own build...

/home/eli/llvm/tools/clangclean/CodeGen/CodeGenTypes.cpp:423: unsigned
int clang::CodeGen::CodeGenTypes::getLLVMFieldNo(const
clang::FieldDecl*): Assertion `I != FieldInfo.end() && "Unable to find
field info"' failed.

-Eli



More information about the cfe-dev mailing list