[LLVMbugs] [Bug 12816] New: Array with large size triggers Assertion `(Size == 0 || EltInfo.first <= (uint64_t)(-1)/Size) && "Overflow in array type bit size evaluation"'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun May 13 21:51:58 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12816
Bug #: 12816
Summary: Array with large size triggers Assertion `(Size == 0
|| EltInfo.first <= (uint64_t)(-1)/Size) && "Overflow
in array type bit size evaluation"'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hfinkel at anl.gov
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8548
--> http://llvm.org/bugs/attachment.cgi?id=8548
reduced test case (provided by Craig Schroeder)
Running clang trunk on:
char c[11111111111111111111111111111111111111111111111];
results in:
t12.c:1:8: warning: integer constant is too large for its type
char c[11111111111111111111111111111111111111111111111];
^
clang: /src/llvm-trunk-writable/tools/clang/lib/AST/ASTContext.cpp:868:
std::pair<long unsigned int, unsigned int>
clang::ASTContext::getTypeInfoImpl(const clang::Type*) const: Assertion `(Size
== 0 || EltInfo.first <= (uint64_t)(-1)/Size) && "Overflow in array type bit
size evaluation"' failed.
--
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.
More information about the llvm-bugs
mailing list