anthropics / anthropics/claudes-c-compiler
ice(): _Alignas() with a negative number
未關閉
- 主要語言
- Rust
- 星號
- 2.8k
- 分支
- 247
- PR 合併指標
- 30 天內沒有已合併 PR
描述
that C code
```c
#include
#include
void greet() {}
struct {} _Alignas(-1) MinusOne;
int main() {
unsigned MinusOne = -1;
}
```
when you try to compile it, you will see an internal compiler error not a regular compiler error
```rust
thread '' (18932) panicked at src/backend/common.rs:1116:9:
alignment must be power of 2
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ccc: internal error: alignment must be power of 2
```
Instead of handling the invalid code
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。