The following code executes fine is stepped through in the debugger, but the assignment produces a "general error" when run normally. Is this a bug? If so, is there a workaround?
struct Record { int dummy; };
struct Record_Holder { Record* record; };
void main () {
Record record; Record_Holder record_holder; record_holder.record = &record; }