workaround
Code:
typedef struct
{
long body;
char* name;
}PILOT;
typedef struct
{
PILOT* driver;
char* name;
}ROACH;
PILOT* pilot1 =
{
name = "Pilot 1";
}
ROACH* vehicle1 =
{
name = "Vehicle 1";
driver = pilot1;
}
void test_structs_startup()
{
pilot1.body = vehicle1;
ROACH* temp_vehicle;
temp_vehicle = (ROACH*)pilot1.body;
error(temp_vehicle.name);
}