https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115568
--- Comment #7 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- I've reproduced the bug and started to work on it. It looks like bug in combination of inheritance and rematerialization. I'll try to fix it on this week.