https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011
--- Comment #15 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> --- (In reply to Vincent Lefèvre from comment #14) > (In reply to Jakub Jelinek from comment #4) > > If you want to compare against all ones time_t, just use ~(time_t)0 or > > similar. > > This one is a bad idea as it may have issues with signed types (when not in > two's completed) but *also* on unsigned integer types of rank less than int. ^^^^^^^^^ complement > If you know the name of the type, say time_t, then just compare to > (time_t)-1. Note: The context was that the name of the type was used in Jakub's proposal. I'm saying that this is an easy case to deal with correctly.