Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return struct crestc error #7

Open
kren1 opened this issue Jan 15, 2017 · 1 comment
Open

return struct crestc error #7

kren1 opened this issue Jan 15, 2017 · 1 comment

Comments

@kren1
Copy link
Contributor

kren1 commented Jan 15, 2017

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?

@lmagoncalo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants