I narrowed it down to one line that crashes the compiler:
Code:
actual.score = Score(actual, data);
actual is a struct passed by reference to the function, data is also a struct.
I've checked to make sure that score is a member, and it is.
The Score function's declaration looks like:
Code:
double Score(AEE addeff, datavar data);
and the declaration of the function that this line is in is:
Code:
void Create_data(AEE &actual, datavar &data, total_net &net, double fake_st_dev);
The AEE struct is:
Code:
struct AEE
{
char name;
int namelen;
EE eff[MAX_EFF];
int size;
double score, mean, st_dev;
};