Open ZitongZhouEric opened 2 weeks ago
@llvm/issue-subscribers-clang-codegen
Author: Zitong Zhou Eric (ZitongZhouEric)
@llvm/issue-subscribers-c11
Author: Zitong Zhou Eric (ZitongZhouEric)
A more simple test case:
int main(void) {
_Atomic _Complex float buggy = (_Atomic _Complex float)2.0f;
}
Removing the cast in the initialization causes the issue to go away.
To reproduce: https://godbolt.org/z/vvzPhaoTW Clang trunk crashes on the following snippet
Not sure if this is related to https://github.com/llvm/llvm-project/issues/111293, which reports the same assertion failure but doesn't crash clang without assertions On clang trunk with assertions: