https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87493
Aleksey Covacevice <aleksey.covacevice at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aleksey.covacevice at gmail dot co | |m --- Comment #3 from Aleksey Covacevice <aleksey.covacevice at gmail dot com> --- VinÃcius: I couldn't reproduce the issue at hand. I've tested a number of `std::tm` combinations manually, and also checked through all `time_t` values from `INT_MIN` to `INT_MAX` without any failures. Could you provide a sample input for which the assertion fails? Recall that, from POSIX, `tm.tm_year` is supposed to be a number counted from 1900. Mistakenly inputting larger values will silently overflow things along the way.