Opened 11 years ago
Closed 11 years ago
#2402 closed defect (fixed)
Parser does not parse output list correctly!
Reported by: | adrpo | Owned by: | sjoelund.se |
---|---|---|---|
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!
Change History (1)
comment:1 Changed 11 years ago by adrpo
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Fixed in r17552.