Opened 8 years ago

Closed 3 years ago

#4355 closed defect (fixed)

Simultaneous inner/outer broken

Reported by: Christoph Höger Owned by: somebody
Priority: high Milestone: 1.19.0
Component: *unknown* Version: v1.11.0
Keywords: Cc:

Description (last modified by Christoph Höger)

The following model should work according to the specification. In particular, the n on the rhs of n in A should point to the outer constant and the n in c should point to the one in A.
i.e., I expect the equation a.c.y = 41.

package Test
  class A
    inner outer constant Integer n = n-1;
    Real x = n;
    C c;
  end A;

  class B
    inner constant Integer n = 42;
    A a;
  end B;

  class C
    outer constant Integer n;
    Real y = n;
  end C;
end Test;

Change History (8)

comment:1 by Christoph Höger, 8 years ago

Description: modified (diff)

comment:2 by Francesco Casella, 7 years ago

Milestone: 1.12.01.13.0

Milestone moved to 1.13.0 due to 1.12.0 already being released.

comment:3 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:4 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:5 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:6 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:7 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

comment:8 by Per Östlund, 3 years ago

Milestone: 1.19.0
Resolution: fixed
Status: newclosed

The new frontend gives the following flat model for Test.B:

class Test.B
  constant Integer n = 42;
  constant Integer a.n = 41;
  Real a.x = 42.0;
  Real a.c.y = 41.0;
end Test.B;

The old frontend just seems to hang, but since the new frontend is the default now that should be good enough.

Note: See TracTickets for help on using tickets.