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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
ctime returns the same pointer no matter what. It 


https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf

The ctime function returns the pointer returned by the asctime function with
that
broken-down time as argument.

"Execution of
any of the functions that return a pointer to one of these object types may
overwrite the
information in any object of the same type pointed to by the value returned
from any
previous call to any of them and the functions are not required to avoid data
races.
"
  • [Bug c/107081] New: ct... francois.hebert001 at videotron dot ca via Gcc-bugs
    • [Bug c/107081] ct... pinskia at gcc dot gnu.org via Gcc-bugs

Reply via email to