efriedma added a comment.

> It looks like gcc started rejecting the code relatively recently (11.1).

On what example?  The code in the commit message gives an error on gcc 5.

> Also, I found out that MSVC doesn't reject the following code:

This looks like a backwards-compatibility quirk in the 32-bit x86 MSVC ABI; 
other MSVC targets round up the size, and even adding `__declspec(align(1))` 
forces the size to something sane.  Don't know if we want to try to emulate 
this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133711/new/

https://reviews.llvm.org/D133711

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to