================
@@ -47,7 +47,13 @@ struct __libcpp_datasizeof {
   };
 #endif
 
+  // Disable warnings related to the use of `offsetof` on non-standard layout 
or non-POD types
----------------
philnik777 wrote:

```suggestion
  // _FirstPaddingByte<> is sometimes non-standard layout. Using `offsetof` is 
UB in that case, but GCC and Clang allow the use as an extension.
```

https://github.com/llvm/llvm-project/pull/65246
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to