[PATCH] D133574: [C2x] reject type definitions in offsetof
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 14 05:12:43 PST 2023
aaron.ballman added a comment.
I'll take care of fixing this up on Tuesday (Mon is a holiday here), but if anyone wants to get to it sooner, what I plan to do is:
- Add a new `Extension` diagnostic about allowing you to define a type in `__builtin_offsetof`
- Replace the error in C with the extension warning (C++ will continue to err)
- Add documentation to the extensions manual for the builtin
- Update the release note and tests accordingly
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