﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5125	Wrong instantiation of default function arguments	Rüdiger Franke	Per Östlund	"See the following example:
{{{#!mo
  function f
    input Real u1;
    input Real u2 = u1;
    output Real y;
  algorithm
    y := u1 + u2;
  end f;

  model m
    input Real a(start = 1);
    output Real b;
  equation
    b = f(a);
  end m;
}}}
The old frontend (`omc`) produces correctly:
{{{#!mo
class m
  input Real a(start = 1.0);
  output Real b;
equation
  b = f(a, a);
end m;
}}}
The new frontend (`omc -d=newInst`) produces wrongly:
{{{#!mo
class m
  input Real a(start = 1.0);
  output Real b;
equation
  b = f(a, u1);
end m;
}}}
"	defect	closed	high	2.0.0	New Instantiation		fixed		
