Opened 15 years ago
Last modified 14 years ago
#1219 closed defect (fixed)
Recursive parameter definitions results in Stack Overflow
Reported by: | Adrian Pop | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Adrian Pop, |
Description
This model:
model RecursiveParameters "x depends on y which depends on x" parameter Real x = y + z; parameter Real y = x + a; parameter Real z = 1; parameter Real a = 2; end RecursiveParameters;
will result in a stack overflow.
This happens both in the front-end and in the back-end. (The model only targets it in the front-end)
We should implement checks for recursive parameter definitions.
Note:
See TracTickets
for help on using tickets.
This is fixed in r8063, at least for the front-end. I can't see any scenario where it will succeed in the front-end but fail in the back-end with this, so I consider this fixed for now. If there's still some issues you can reopen this bug.