could someone check this on another system?

Nick Sabalausky a at a.a
Mon May 4 12:24:38 PDT 2009


"BCS" <none at anon.com> wrote in message 
news:a6268ff56558cb9ab074256fbe at news.digitalmars.com...
> The attached (er. Can't seem to attach the file, I'll e-mail it to anyone 
> who's willing to take a look) has a bug on WinXP DMD 1.040. I can't seem 
> to reduce it at all as anything but trivial changes (like removing dead 
> code) seems to make the bug vanish.
>
> The short description is I have some code that looks something like this:
>
>
> bool Foo()
> {
>   bool ret = true;
>   writef(ret,'\n');
>   return ret;
> }
>
> unittest
> {
>    auto ret = Foo();
>    writef(ret,'\n');
>    assert(ret);
> }
>
> output:
>
> true
> false
> Assert Failed
>


Prepending the following to the above:

import std.stdio;
void main() {}

I got the following on WinXP 32-bit DMD 1.041:
true
true





More information about the Digitalmars-d mailing list