Opened 6 years ago
#5272 new defect
Inlining handles tuple inputs incorrectly
Reported by: | Per Östlund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | MetaModelica | Version: | v1.14.0-dev-nightly |
Keywords: | Cc: |
Description
Flattening the following model with -g=MetaModelica
:
function f input tuple<Real, Real> y; output Real z; algorithm (z, _) := y; annotation(__OpenModelica_EarlyInline=true); end f; model M Real x; algorithm x := f((time, time)); end M;
gives
class M Real x; algorithm x := Tuple(#(time), #(time)); end M;
I.e. the inlining replaces the call with the whole input tuple, instead of the first tuple element as expected.
Note:
See TracTickets
for help on using tickets.