Spec on casting to integer with smaller range than value

Timon Gehr timon.gehr at gmx.ch
Sun Mar 29 14:25:55 UTC 2020


On 28.03.20 16:33, kinke wrote:
> that should probably be explicitly mentioned as undefined behavior, to 
> account for the observed LLVM/gcc behavior.

It can't be full-blown UB as such a cast works in @safe code.


More information about the Digitalmars-d mailing list