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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs