[clang] [C23] Fix typeof handling in enum declarations (PR #146394)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 3 07:15:14 PDT 2025


Sirraide wrote:

> > ```c++
> > typeof(int){} x; // Probably parsed as typeof(int{})
> > ```
> 
> GCC reject this https://godbolt.org/z/YEdnGh8T5

GCC rejects it in C mode; it accepts it in C++ mode.

https://github.com/llvm/llvm-project/pull/146394


More information about the cfe-commits mailing list