https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52408 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52408&action=edit gcc12-pr102586.patch I can make it work with a langhook like this. But I can't figure out where in BINFO to find the as_base type or something similar to that.