anthropics / anthropics/claudes-c-compiler

ice(): _Alignas() with a negative number

未關閉
#262 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。