http://llvm.org/bugs/show_bug.cgi?id=15839
Bug ID: 15839
Summary: [C99] clang crashes on compound literal initialization
with address-of as element.
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
given test.c:
int x;
struct S { int x : 2; };
struct S b = (struct S){ &x };
clang test.c
This will crash clang.
I believe this is invalid c99 code since &x is not a constant expression.
--
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