Opened 15 years ago

Last modified 15 years ago

#1196 closed defect (fixed)

Probable issue with nested min/max functions

Reported by: perob88 Owned by: perob88
Priority: high Milestone:
Component: Code Generation Version: 1.5.0
Keywords: Cc: perob88, Per Östlund

Description

The following modelica code generates c-code that does not compile...

class buggtrigger 
  parameter  Real a = 1;
  parameter  Real b = 2;
  parameter  Real c = 3;
  Real d; 
equation
 d = min(max(a,b),min(c,5)); 
end buggtrigger;

Change History (1)

comment:1 by Per Östlund, 15 years ago

Fixed in revision 5321.

Note: See TracTickets for help on using tickets.