Opened 14 years ago

Closed 12 years ago

Last modified 7 years ago

#1405 closed defect (fixed)

Wrong dimensions for arrays of array aliases

Reported by: AlexeyLebedev Owned by: AlexeyLebedev
Priority: high Milestone: 1.9.4
Component: Frontend Version:
Keywords: Cc: AlexeyLebedev, peter.aronsson@…, Per Östlund

Description (last modified by Martin Sjölund)

An array of a type which is defined as an array itself gets wrong dimensions. For example,

type B = Real[2];
class A
B[3] z;
end A;

produces

class A
  Real z[1];
  Real z[2];
end A;

Change History (8)

comment:1 by Peter Aronsson, 12 years ago

Cc: peter.aronsson@… added

This is pretty serious, and it hasn't been touched in 20 months. Will the new instantiation module take care of this?

comment:2 by Martin Sjölund, 12 years ago

Description: modified (diff)

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

Cc: Per Östlund added

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

Component: InstantiationFrontend
Milestone: Future

Yes, the new one will solve it:

$ omc +d=scodeInst a.mo
/home/marsj/dev/trunk/build/bin/omc 1.9.0 Beta1 (r12688)

EXPANDED FORM:

class A
  Real z[1,1];
  Real z[1,2];
  Real z[2,1];
  Real z[2,2];
  Real z[3,1];
  Real z[3,2];
end A;

comment:5 by Adrian Pop, 12 years ago

Hopefully fixed in r14255.

comment:6 by Adrian Pop, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r14273.

comment:7 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

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

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.