crest icon indicating copy to clipboard operation
crest copied to clipboard

return struct crestc error

Open kren1 opened this issue 8 years ago • 1 comments

Compiling

struct a {
  char const b;
} g_1782;
struct a c() {
  for (;;)
    return g_1782;
}
int main() {  }

With crestc gives me

test7.c: In function ‘c’:
test7.c:6:15: error: assignment of read-only variable ‘__retres1’
     return g_1782;

Is this some sort of instrumentation bug?

kren1 avatar Jan 15 '17 23:01 kren1

I think the crest doesn't support infinite loops like: for(;;) { statements; }

lmagoncalo avatar Dec 01 '18 00:12 lmagoncalo