https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103374
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- __builtin_clear_padding is intended primarily for C++ which doesn't have these, I have no plans to support variable length structures in there. So, probably gimplify_decl_expr should next to clear_padding_type_may_have_padding_p also check that int_size_in_bytes (strip_array_types (TREE_TYPE (decl))) > 0 (while zero sized types can be handled, there is certainly no padding in them, so > 0 rather than >= 0).