The offsetof macro is intended to work with subobjects rather than simple identifiers...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 21 Nov 2017 19:25:38 +0000 (19:25 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 21 Nov 2017 19:25:38 +0000 (19:25 +0000)
commit52a3ca9e290925b5900c3176db455b70fdd51529
treec0b0467017558712fcb07618237554799cdad3e3
parent58166b13e093a8f4eda9ee6bd36e733bd133b62f
The offsetof macro is intended to work with subobjects rather than simple identifiers designating a member, making the -Wextended-offsetof diagnostic obsolete as this construct is not an extension. Implements WG14 DR496.

llvm-svn: 318796
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaExpr.cpp
clang/test/CXX/drs/dr4xx.cpp