#3666 closed defect (fixed)
Undefined variable time is not detected within functions
Reported by: | Lennart Ochel | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Frontend | Version: | |
Keywords: | Cc: |
Description
Undefined variable time in functions is not detected. In some cases the function call get inlined and the simulation get compiled, in the other cases compilation of the generated code fails.
Change History (6)
comment:1 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:4 by , 9 years ago
Maybe we should add a small library coverage test with BuildModelRecursive.mos as your commit broke it. I now fixed the use of time in the script functions.
Note:
See TracTickets
for help on using tickets.
Fixed in 47ae7d2. time is now only allowed in models and blocks as per the specification. Time is also treated more lika a built-in name, i.e. it's not allowed to declare components named time.