>> // 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