https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336 --- Comment #39 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You should also update gimplify.c's zero_sized_type to be the same as your empty_record_p.