https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70869
--- Comment #9 from Kai Tietz <ktietz at gcc dot gnu.org> --- Created attachment 38470 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38470&action=edit updated patch Well, DECL_P check is indeed superfluous, but I added to point out we are checking here for declarations. but VAR_P should be indeed enough. The OBJ_TYPE_REF hunk is related to PR/71029, and can be ignored. I removed it from update.