Issue |
150363
|
Summary |
clang-20 crashed with address_space attribute at O1 and above. fatal error: error in backend: cannot lower memory intrinsic in address space 256.
|
Labels |
new issue
|
Assignees |
|
Reporter |
iamanonymouscs
|
clang-20 crashed with `address_space` attribute at `O1` and above.
Compiler explorer (assertion trunk): https://godbolt.org/z/d3bzdvY6o
```
$cat mutant.c
void a(long b) {
__attribute__((address_space(256))) char *c = 0;
for (long d = 0; d < b; ++d)
c[d] = 0;
}
```
```
$clang-20 -O1 mutant.c
clang-20 -O1 mutant.c
fatal error: error in backend: cannot lower memory intrinsic in address space 256
clang-20: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Ubuntu clang version 20.1.8 (++20250708123929+0de59a293f7a-1~exp1~20250708003944.130)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-20/bin
clang-20: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-20: note: diagnostic msg: /tmp/mutant-98b0d1.c
clang-20: note: diagnostic msg: /tmp/mutant-98b0d1.sh
clang-20: note: diagnostic msg:
********************
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs