www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - There is a bug here somewhere.

This compiles:

int[2] x = 3;
float y = 0.0f;

void main(char[][] args)
{
    printf("%d, %d\n", x[0], x[1]);

    y = -100;

    printf("%d, %d\n", x[0], x[1]);
}

output:
3, 0
3, -1027080192

I know the work-arounds to achieve correct behavior.  Either I coded 
wrong or there is a bug or both.

Thanks,

Paul
Jun 01 2004