https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115740
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- Apparently this is still a problem (pytorch just stopped using std::clamp apparently) but I'm unable to reproduce any errors: https://cuda.godbolt.org/z/EM4aqqczx In the absence of a reproducer nothing is going to change.