This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR32628, bogus overflow flag on sizetype consts


> Huh?  If you do computations in sizetype you know that overflow never
> happens.  (At least this is what you told us in former times ;))

I said it can't occur in valid programs so that if it does, we don't
care what happens. There's a difference between that and "never happens".
But here what can overflow is the *conversion*.  If you have an unsigned
sizetype and convert to signed, that conversion most certainly can
overflow!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]