[llvm-bugs] [Bug 47710] New: Clang :: Sema/offsetof-64.c FAILs on 64-bit Sparc
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 2 05:25:49 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47710
Bug ID: 47710
Summary: Clang :: Sema/offsetof-64.c FAILs on 64-bit Sparc
Product: libraries
Version: trunk
Hardware: Sun
OS: All
Status: NEW
Keywords: miscompilation, regression
Severity: normal
Priority: P
Component: Backend: Sparc
Assignee: unassignedbugs at nondot.org
Reporter: ro at gcc.gnu.org
CC: llvm-bugs at lists.llvm.org
The Clang :: Sema/offsetof-64.c test FAILs on 64-bit Sparc (seen on both
sparcv9-sun-solaris2.11 and sparc64-unknown-linux-gnu):
Assertion failed: (Size == 0 || EltInfo.Width <= (uint64_t)(-1) / Size) &&
"Overflow in array type bit size evaluation", file
/vol/llvm/src/llvm-project/dist/clang/lib/AST/ASTContext.cpp, line 1914
However, the same problem can be seen in a much reduced testcase (attached).
Compile with
$ clang -m64 -O3 -o o64 o64.c o64d.c && ./o64
Assertion failed: Width <= (uint64_t)(-1) / Size, file o64.c, line 7, function
main
Abort (core dumped)
The test works with gcc and clang-9, while clang-10 and 11 show the same error.
--
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/20201002/e0439193/attachment.html>
More information about the llvm-bugs
mailing list