https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110615
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED Version|unknown |6.5.0 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This is the expected behaviour for those old releases (which are no longer supported or maintained, and so there's no point reporting bugs in them). Prior to the resolutions of https://wg21.link/lwg2192 and https://wg21.link/lwg2294 the integer overloads of std::abs were only declared in <cstdlib>, so if you only include <cmath> then you only get the floating-point overloads. GCC 7.0 implements the resolutions to those issues, in r7-3447-g37b204de605563