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

Invalid acc() argument exception #47

Open
JonathanAldrich opened this issue Apr 11, 2023 · 0 comments
Open

Invalid acc() argument exception #47

JonathanAldrich opened this issue Apr 11, 2023 · 0 comments

Comments

@JonathanAldrich
Copy link
Member

If you have an argument of primitive type and you assert ownership of it you'll get an "Invalid acc() argument" exception. This should be an error message instead of an exception, and it should say something like "can't assert ownership of a variable of primitive type" or similar.

Example code:

void foo(int x)
  // @requires acc(x)
{ ... }
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

1 participant