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

--- Comment #4 from kargl at gcc dot gnu.org ---
(In reply to saitofuyuki from comment #3)
> Thanks a lot.
> 
> > Not sure it's a bug.
> 
> I see.  I do agree it's not a bug and the answer of the particular case is
> undefined.
> 
> But (for 32-bit integer case), since implemented ISHFT(I,32) returns 0 for
> any representation of I, I suppose it may be better to return I as it is by
> IBITS(I,0,32) (again, I agree it is not defined by standard).
> 
> Anyway, thanks a lot for your comment.

In the end, gfortran should probably do something that a user
might expect, and that would likely be two-complements wrap-around
unsigned integer arithmetic.

Reply via email to