https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93962
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2020-02-27 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Wait I think this should have been std::abs rather than just abs :). Can you try that and see if that fixes the issue? on glibc targets abs is in the toplevel namespace for all types (I think) but on FreeBSD only the overload for int is in the toplevel namespace.