zoecarver added a comment.

> Filed https://gcc.gnu.org/PR97943 for that. Avoiding the crash is trivial, 
> deciding what we want to do exactly for flexible array members (which are 
> beyond the C++ standard) is harder.

Yes, and we should try to do the same thing in this case. Currently, this 
implementation clears any padding bits that might come before the flexible 
array member but doesn't attempt to clear any of the array's padding bits 
(which I'm pretty sure wouldn't be feasible). So, what we're really deciding is 
whether or not to error for these types.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87974

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

Reply via email to