https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112504
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-11-13 Ever confirmed|0 |1 Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. The C++ front-end fixes this by wrapping the call of foo with a TARGET_EXPR.