Opened 11 years ago
Closed 11 years ago
#2402 closed defect (fixed)
Parser does not parse output list correctly!
Reported by: | Adrian Pop | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.0 |
Component: | Parser | Version: | trunk |
Keywords: | Cc: |
Description
model OutputList function f input Real x; output Real a; output Real b; output Real c; output Real d; output Real e; algorithm a := x + 1; b := x + 2; c := x + 3; d := x + 4; e := x + 5; end f; Real x; equation (,,,x,) = f(0); end OutputList;
If you do this:
loadFile("OutputList.mo"); getErrorString(); list(OutputList); getErrorString();
you get:
adrpo@ida-liu050 ~/dev/OpenModelica/build/bin $ ./omc OutputList.mos true "" "model OutputList function f input Real x; output Real a; output Real b; output Real c; output Real d; output Real e; algorithm a:=x + 1; b:=x + 2; c:=x + 3; d:=x + 4; e:=x + 5; end f; Real x; equation (,,,x) = f(0); end OutputList; " ""
which gives you: (,,,x) = f(0);
that is clearly wrong!
Note:
See TracTickets
for help on using tickets.
Fixed in r17552.