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

--- Comment #2 from M Welinder <terra at gnome dot org> ---
> Why? If somebody wants to be explicitly stupid, that's their prerogative.

I agree with the second sentence.

However, casts are not a clear indication that somebody wants to be explicitly
stupid, at least not in C++.  If you were looking for such an indication, my
int(int64_t(...)) suggestion is probably closer.

Casts occur also in (e.g.) overload resolution and entirely too often in
template soup.  And in macros too, I guess.

The goal here is to find time handling bugs.  We are by definition talking
about code that should not have been written that way in the first place.

Reply via email to