http://llvm.org/bugs/show_bug.cgi?id=11804
Bug #: 11804
Summary: Assertion violation in EvaluateLValue for compound
literal
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
const static short* OutputTable[] =
{ (short[]){1,2,3} };
generates an assertion violation when compiled with clang++:
clang: ExprConstant.cpp:913: bool EvaluateLValue(const clang::Expr*,
{anonymous}::LValue&, {anonymous}::EvalInfo&): Assertion `(E->isGLValue() ||
E->getType()->isFunctionType() || E->getType()->isVoidType() ||
isa<CXXTemporaryObjectExpr>(E)) && "can't evaluate expression as an lvalue"'
failed.
clang version 3.1 (trunk 143304)
Target: x86_64-unknown-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
is happy with the code.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs