Opened 2 years ago

#5381 assigned defect

Flattening constant in external statement in subcomponent

Reported by: Jonathan Kämpe Owned by: Jonathan Kämpe
Priority: major Milestone:
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:

Description

The following model does not flatten correctly:

    model M
        constant Integer n = 2;
        function f
            input Real x;
            output Real y;
            external "C" y=f(x, n) annotation(Include="double f(double x, int n) { return n*x; }");
        end f;
        Real y = f(time);
    end M;
    
    M m;

Change History (0)

Note: See TracTickets for help on using tickets.