Open bradjc opened 11 years ago
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.
uniqueCount("UNIQ_ID")
For reference, here is the error output I get:
nesc1: cval.c:268: cval_sint_value: Assertion `0' failed.
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:
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: