compiler bug?

Hardware related problems and workarounds

compiler bug?

Postby shmueli » Sun Dec 14, 2014 7:17 am

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
shmueli
 
Posts: 2
Joined: Sun Dec 14, 2014 7:09 am

Re: compiler bug?

Postby aolofsson » Wed Dec 31, 2014 2:11 pm

Haven't seen anything like this...any chance you could file an issue here?

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

Thanks!!
Andreas
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA


Return to Troubleshooting

Who is online

Users browsing this forum: Google [Bot] and 11 guests

cron