https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103700
--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #3) > I think the right patch is to check to see if the pointed to type is > complete in pointer_int_sum before calling size_in_bytes_loc. But there is > no function call that is common between the C and C++ front-ends to check > that. Hmm, can't we just check COMPLETE_TYPE_P in pointer_int_sum directly? Patch to that effect posted at https://gcc.gnu.org/pipermail/gcc-patches/2021-December/587300.html.