[clang] [C23] Fix typeof handling in enum declarations (PR #146394)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 2 11:57:12 PDT 2025
https://github.com/Sirraide commented:
One more thing I thought of: What about C++ edge cases, e.g. both Clang and GCC accept this... which doesn’t quite seem right to me (https://godbolt.org/z/K58eEvG9P):
```c++
typeof(int){} x; // Probably parsed as typeof(int{})
```
https://github.com/llvm/llvm-project/pull/146394
More information about the cfe-commits
mailing list