[PATCH] D133574: [C2x] reject type definitions in offsetof
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 27 06:14:26 PST 2023
aaron.ballman added a comment.
In D133574#4085372 <https://reviews.llvm.org/D133574#4085372>, @aaron.ballman wrote:
> So by my understanding, my original changes removing the extension warning (in D40267 <https://reviews.llvm.org/D40267>) were jumping the gun because the committee never made the change we said we'd make. So I believe this is still an extension as far as C conformance is concerned. That said, I'll check with the convener to see if he'd be too frustrated if I filed a CD2 comment asking for `member-designator` to be replaced with `subobject` based on prior discussion, so maayyyybbeee we can fix this for C2x still.
I heard back and there's even more confusion -- we were tracking an older copy of the DR list, and there's an update that clarifies this: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2396.htm#dr_496. So you're right, the array and member access extension warnings need to be removed. I'll take care of that and get it cherry picked into the Clang 16 branch.
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