[llvm-bugs] [Bug 39943] New: clang misbehaves with initializer lists longer than 2^32 elements
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 10 15:26:45 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39943
Bug ID: 39943
Summary: clang misbehaves with initializer lists longer than
2^32 elements
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: efriedma at codeaurora.org
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
The following C testcase:
char x[0x100000001] = {[0x100000000] = 1};
Produces the following IR:
@x = dso_local local_unnamed_addr global [1 x i8] c"\01", align 16
The following C testcase crashes:
char x[0x100000001] = {[0xffffffff] = 1,2,3};
I don't really care if this actually compiles correctly, but the miscompile is
confusing.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181210/7aa17898/attachment-0001.html>
More information about the llvm-bugs
mailing list