https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87502
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The C++17 calling a function part of this issue is record as PR 86590 already. The rest is a different issue and should be looked into.