Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3518 closed defect (fixed)

vector with fill fail

Reported by: Vitalij Ruge Owned by: Martin Sjölund
Priority: normal Milestone: 1.9.4
Component: Frontend Version:
Keywords: Cc:

Description

checkModel for

model fillTest
 Boolean b = false;
 constant Integer n = 2;
 Boolean[:] vecB = vector([fill(true, n-1);b]);
end fillTest;

return

[fillTest: 5:2-5:47]: Got type mismatch error, but matching types Boolean[1, 1].
This is a ***COMPILER BUG***, please report it to https://trac.openmodelica.org/OpenModelica.

Change History (7)

comment:1 by Vitalij Ruge, 9 years ago

Note:

model fillTest
 Boolean b = false;
 constant Integer n = 2;
 Boolean[:] vecB = vector([fill(not b, n-1);b]);
end fillTest;

replace true in fill with b, work!

comment:2 by Vitalij Ruge, 9 years ago

Priority: highnormal

comment:3 by Martin Sjölund, 9 years ago

Owner: changed from somebody to Martin Sjölund
Status: newaccepted

comment:4 by Martin Sjölund, 9 years ago

Milestone: Future1.9.4
Resolution: fixed
Status: acceptedclosed

Fixed in 1034be4/OMCompiler.

comment:5 by Martin Sjölund, 9 years ago

The error-messages for matrices when you send unexpected array dimensions are still horrible though...

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:7 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.