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

Cannot Initalize an Array That Has Length uniqueCount() #5

Open
bradjc opened this issue Feb 14, 2013 · 0 comments
Open

Cannot Initalize an Array That Has Length uniqueCount() #5

bradjc opened this issue Feb 14, 2013 · 0 comments
Assignees

Comments

@bradjc
Copy link
Contributor

bradjc commented Feb 14, 2013

I came across an "internal error" in nesC when trying to initalize an array that has a length set by the uniqueCount() function. This snippet reproduces the error:

module TestP { }
implementation {
  char arr[uniqueCount("UNIQ_ID")] = {1};
}

Obviously here uniqueCount("UNIQ_ID") is zero, but the error still happens in a real project.

For reference, here is the error output I get:

nesc1: cval.c:268: cval_sint_value: Assertion `0' failed.
@ghost ghost assigned dgay42 Feb 14, 2013
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