[PATCH] D133574: [C2x] reject type definitions in offsetof

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 26 12:09:58 PST 2023


aaron.ballman added a comment.

In D133574#4083724 <https://reviews.llvm.org/D133574#4083724>, @asbirlea wrote:

> Following this change, the following emits warnings: https://godbolt.org/z/cvGdMWqEa, https://godbolt.org/z/GhTP85WzE
>
> Can you please fix fwd or revert until resolved?

What do you expect to be resolved? You're passing `-Wgnu-offsetof-extensions` which is warning you about the extensions, and `-Werror` is turning them from a warning into an error, so you're getting the behavior I'd expect based on: https://reviews.llvm.org/D133574#4059845


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133574/new/

https://reviews.llvm.org/D133574



More information about the cfe-commits mailing list