GC.malloc is pure - wat

ag0aep6g via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 1 11:17:49 PDT 2016


On 01.04.2016 00:18, ag0aep6g wrote:
> Compiled with dmd and no optimization switches, this prints "false" and
> "1" as expected.
> Compiled with `dmd -O -release`, this prints "true" and "2". The heck?
> With `ldc2 -O5 -release`: "false" and "1". No problem there.
>
> This looks like a serious bug in dmd to me.

I've filed an issue:

https://issues.dlang.org/show_bug.cgi?id=15862


More information about the Digitalmars-d mailing list