Array of struct with floating point members seg faults

Ali Çehreli acehreli at yahoo.com
Sat Oct 26 10:46:30 PDT 2013


The following program seg faults:

struct Point
{
     double x;
     double y;
}

void main()
{
     Point[1] arr;
}

Any combination of float and double members exhibit the same bug as long 
as the size of the struct is 16.

I vaguely remember seeing a similar bug before but I can't find it in 
bugzilla.

Ali


More information about the Digitalmars-d-learn mailing list