﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1032	Compilation fails when using min, max	Jens Frenkel	Jens Frenkel	"Hello,

I found a new problem introduced with the new OpenModelica 1.4.5. If there is 'min' or 'max' in the equations the compilation fails.
The log file says: ""Test.cpp:351: error: no matching function for call to `max(double&, int)'""

The following model produces this error:

model Test
  Real x(start = -1);
  Real a;
equation
  der(x) = 1;
  a = max(x,0);
end Test;  

Replacing the line 'a = max(x,0)' by 'a = max(x,0.0)' fixes the problem. However, I am sure that this was not necessary in the 1.4.4 version.

Kind regards,

Jens Frenkel"	defect	closed	high				fixed		Jens Frenkel
