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

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 2 12:00:41 PDT 2025


Sirraide wrote:

> > ```c++
> > typeof(int){} x; // Probably parsed as typeof(int{})
> > ```
> 
> Actually, I’m not sure what we think this is supposed to be; I haven’t checked.

Actually, that’s just a compound literal; I forgot we supported those in C++.

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


More information about the cfe-commits mailing list