| Issue |
76634
|
| Summary |
Internal compiler error on array subscription
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
kelbon
|
GCC also ICEs here, but before subscription
```cpp
int main() {
int n;
int m;
auto& x = *(int(*)[n][m])(nullptr); // problem is here - binding to reference
return x[0][0]; // here internal error
}
```
That's not best code ever, but i think it need to be fixed()
https://godbolt.org/z/KPoeMGPPd
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs