Opened 12 years ago
Closed 12 years ago
#2158 closed defect (fixed)
Stack overflow with cyclic dimensions
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: |
Description
Remove the binding from n and the code works as expected. With it, we overflow the stack.
function f input Real x[size(x,1)]; output Real o; protected Integer n=size(x, 1); algorithm o := 1.5; end f; model M Real r = f({1}); end M;
Note:
See TracTickets
for help on using tickets.
I will add a maximum recursion depth to Ceval.mo. That should take care of any similar issues that pop up.