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;

Change History (2)

comment:1 by Martin Sjölund, 12 years ago

Owner: changed from Adrian Pop to Martin Sjölund
Status: newaccepted

I will add a maximum recursion depth to Ceval.mo. That should take care of any similar issues that pop up.

comment:2 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r15850

Note: See TracTickets for help on using tickets.