Opened 14 years ago

Last modified 14 years ago

#1453 closed defect (fixed)

Missing bounds checking on array subscripts

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Version:
Keywords: Cc: Martin Sjölund,

Description

The following is accepted, but should not be (subscripts >1 are rejected as expected)
{{{class A

Real r[1];

equation

r[0] = 15;
r[-1] = 15;
r[-2] = 15;
r[-3] = 15;

end A;}}}

Change History (0)

Note: See TracTickets for help on using tickets.