"Denis Koroskin" <[email protected]> wrote in message 
news:[email protected]...
> Now I am convinced:
>
> extern(C) int rand();
>
> void main()
> {
>    int x = void;
>    if (rand() == 0) {
>        x += 5; // line 7
>    }
> }
>
> test.d(7): Error: variable x used before set
>
> It only happens with DMD1.042+
>
> Yay!

I guess I'm going to have to start using -O in my debug builds...unless this 
behavior becomes independant of the -O switch...wink wink nudge nudge... 


Reply via email to