@aitikin ah okay, I wonder if you are still on Funtoo 1.4-release? That could explain why it would fail for you, as there aren't many users left to report issues. In any case, I recommend reporting this as a Bug.
@radek is running into the same issue, caused by old gcc? FYI next-release we have sys-devel/gcc-11.3.0-r1