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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to