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
