https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67799

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
If you look in <cstdlib> you will see these functions are not provided by GCC's
header, they come from your C library, so this is nothing to do with GCC.

In any case, cplusplus.com is wrong, the functions behave as required by the C
standard:

  If the subject sequence begins with a minus sign, the value resulting from
  the conversion is negated (in the return type).

Reply via email to