On Thu, 09 Apr 2009 20:36:43 +0400, Nick Sabalausky <[email protected]> wrote:

"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...



Yeah, me too!

BTW, that's a breaking change! XD


Reply via email to