the following code shows the bug. It should work in all test cases.. gets a compile error...
Code:
#include <acknex.h>

#define PRAGMA_POINTER

typedef struct {
	int b;
	void func1(int a);
} teststruct;

teststruct gts;

void testfunc(teststruct* ts)
{
	teststruct lts;
	
	lts.b = ts->b;
	lts.func1 = ts->func1;
	gts.b = ts->b;
	gts.func1 = ts->func1;
	
	ts->func1(ts->b);
	
	gts.func1(lts.b);
	
	lts.func1(lts.b);
}

void dummyfunc(int a)
{
	return;
}

void main(void)
{
	teststruct ts;
	
	ts.b = 1;
	ts.func1 = dummyfunc;
	
	testfunc(&ts);p
	
}



tested with 8.1 through 8.3 all fail


Our new web site:Westmarch Studios