Issue 233839
Summary [C2y] N3356 should not apply to while loops
Labels clang:frontend, accepts-invalid, c2y
Assignees
Reporter AaronBallman
    https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3356.htm was accepted into C2y and implemented for Clang 24, but it accepts invalid code as an extension which I don't think we intended to support:
```c
while (int x = 12) {
}
```
Clang accepts with a pedantic warning, GCC and SDCC rejects: https://godbolt.org/z/57jG9G7a4
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to