one of the weirdest bugs ever - request for testing
Philippe Sigaud via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jun 12 13:05:31 PDT 2014
>> // wrong code gen(*) with -release -O -inline -noboundscheck or
>> // with -release -inline -noboundscheck but only if std.file is imported:
>>
>> auto x = countUntil( names, "FOO" );
>> write(x);
>> if( 0 <= x ) writeln(" found a FOO"); // (*) not found!
>> }
>
>
> I'm running OSX Mavericks with DMD v2.065.0. This behavior cannot be
> reproduced.
Linux, 64bits, DMD v2.065.0
Works OK for me ("1 found a FOO"), with or without importing std.file
and compiling with -release -inline -noboundscheck
More information about the Digitalmars-d-learn
mailing list