[clang] [Clang] [Sema] No longer diagnose type definitions in `offsetof` in C23 mode (PR #84169)

via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 8 02:06:28 PST 2024


Sirraide wrote:

> Should we verify that we diagnose the case where the definition includes a comma?

It’s UB if the type contains a comma (unless I’m somehow looking at the wrong C standard again...), so I don’t think we need to diagnose it.

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


More information about the cfe-commits mailing list