[llvm-bugs] [Bug 50741] New: Crash in APInt triggered by commit ce44fe199bbf
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 16 10:13:38 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50741
Bug ID: 50741
Summary: Crash in APInt triggered by commit ce44fe199bbf
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: tauchris at utexas.edu
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
abhinavgaba noted that commit ce44fe199bbf triggers an assertion failure in
APInt for a very specific case of void pointer math. Reproducer is simple:
$ cat test.c
void a() {
(void *)0 + 0xdead000000000000UL;
}
$ clang -cc1 -triple i386-pc-linux test.c
clang: /localdisk2/gabaabhi/ics/l1/llvm/llvm/lib/Support/APInt.cpp:1609:
llvm::APInt llvm::APInt::udiv(const llvm::APInt&) const: Assertion `RHS.U.VAL
!= 0 && "Divide by zero?"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -cc1 -triple i386-pc-linux test.c
1. test.c:2:35: current parser token ';'
2. test.c:1:10: parsing function body 'a'
3. test.c:1:10: in compound statement ('{}')
...
--
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/20210616/8e7d0985/attachment.html>
More information about the llvm-bugs
mailing list