https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103700
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 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.