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

--- Comment #23 from Daniel Marjamäki <daniel.marjamaki at gmail dot com> ---
> If the user expects C to provide tests for "mathematically different", the
user has some learning to do.

I believe most users can appreciate this. But few users fully understand the
integer conversions. I think it's dangerous. :-(

> If, as I said, the user uses explicit casts, that's not good.  Much better
already is to use implicit casts, as I said; and much better than that is
to fix the problems at the root (use proper types everywhere), as I said.

You are de-facto advocating explicit casts because that is how everybody fixes
these.

The advice to use proper types is good, in my opinion everybody tries to do
that. However as far as I see it's impossible in practice to never mix signed
and unsigned types in real projects.

> There is no simple fix, so GCC cannot give good guidance.

Then people just blindly use explicit casts.. and I dislike that.

> Oh, and don't try to insult me please, I'm much too dumb for that.

I apologize! I do not want to insult people.

Reply via email to