phobos's circle CI runs a busted version of DMD
Max Haughton
maxhaton at gmail.com
Wed Jan 11 02:50:52 UTC 2023
On Wednesday, 11 January 2023 at 01:03:33 UTC, deadalnix wrote:
> Sample code:
> ```d
> ushort ee = 1028;
> ee <<= 5U;
> ee >>= 5U;
> writeln(ee);
> ```
>
> Regular compiler: https://godbolt.org/z/TcbjP76fW (prints 1028)
> Circle CI: 64516 .
>
> Someone, the compiler manages to do a signed arithmetic shift
> on an unsigned.
https://godbolt.org/z/M3fGE9bqY
"All versions: Success with output: 64516" from run.dlang.io
More information about the Digitalmars-d
mailing list