Re: [C++ PATCH] Fix -Winvalid-offsetof warning (PR c++/68727)

2017-01-26 Thread Jason Merrill
OK. On Tue, Jan 24, 2017 at 5:43 PM, Jakub Jelinek wrote: > Hi! > > r215070 moved -Winvalid-offsetof pedwarn from build_class_member_access_expr > (where it warned even about offsetof-like hand-written constructs) to > finish_offsetof. That is fine, the problem is that while >

[C++ PATCH] Fix -Winvalid-offsetof warning (PR c++/68727)

2017-01-24 Thread Jakub Jelinek
Hi! r215070 moved -Winvalid-offsetof pedwarn from build_class_member_access_expr (where it warned even about offsetof-like hand-written constructs) to finish_offsetof. That is fine, the problem is that while build_class_member_access_expr saw the original first argument to __builtin_offsetof