[llvm-bugs] [Bug 43728] New: hang on invalid code at x86_64-linux-gnu
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 19 22:10:55 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43728
Bug ID: 43728
Summary: hang on invalid code at x86_64-linux-gnu
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: tangyixuan at mail.dlut.edu.cn
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
clang-10 hangs for the following:
$ cat s.c
static int *f1(int p_7, int *p_8)
{
int l_406[3];
int b = 1;
for (int c = 0; c <= 11; c++)
{
b = *p_46;
}
}
$: timeout -s 9 30 clang -c s.c
Killed
$: clang-trunk -v
clang version 10.0.0 (https://github.com/llvm/llvm-project.git
49c4e58b75ecec8dce75dd13c61aaeb30e14b531)
Target: x86_64-unknown-linux-gnu
Thread model: posix
While clang-8 is okay:
s.c:7:10: error: use of undeclared identifier 'p_46'; did you mean 'l_406'?
b = *p_46;
^~~~
l_406
s.c:3:7: note: 'l_406' declared here
int l_406[3];
^
1 error generated.
--
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/20191020/612fa360/attachment.html>
More information about the llvm-bugs
mailing list