Page 1 of 1

compiler bug?

PostPosted: Sun Dec 14, 2014 7:17 am
by shmueli
Hi all
i've noticed that when i use a struct typedef and define an array , the p[i] operand miss calculates the struct size by 4 bytes...
anyone else had this issue?
typedef struct {
int x ;
int y;
} e_t;
e_t p[N];

p[1].x=1; //will cause p[1].y to be one

Re: compiler bug?

PostPosted: Wed Dec 31, 2014 2:11 pm
by aolofsson
Haven't seen anything like this...any chance you could file an issue here?

https://github.com/adapteva/epiphany-sdk/issues

Thanks!!
Andreas