Opened 2 years ago

#5424 assigned defect

Variable array index in connect

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

Description

When compiling the following model we should perhaps mark p as structural:

        connector C
            Real x;
        end C;
    
        C[2] c1;
        C c2;
        parameter Integer p = 1;
    equation
        connect(c1[p], c2);

If we exchange the connect to

connect(c1[integer(time)], c2);

We get an exception. It should probably give an error.

Change History (0)

Note: See TracTickets for help on using tickets.