[cfe-dev] Initializer assertion failure

Neil Booth neil at daikokuya.co.uk
Thu Dec 13 14:31:59 PST 2007


I get an assert with -emit-llvm compiling

typedef struct
{
  unsigned short a, b, c;
} z;

static const z zs[] =
{
  { 0x00aa, 0x00aa, 1 },
};

assertion "ILE->getType()->isArrayType() ||
ILE->getType()->isStructureType()" failed: file "CodeGenModule.cpp",
line 284, function "llvm::Constant* GenerateAggregateInit(const
clang::InitListExpr*, clang::CodeGen::CodeGenModule&)"
Abort trap

Neil.



More information about the cfe-dev mailing list