In the program below, the full views (in the private part) of T2 and T3 are both illegal because the value of the discriminant, x2, is not static. RM 7.3(13) states that the parent subtype of T2 and T3 (i.e. T1) must impose a statically matching constraint on the discriminant, i.e. x1. RM 4.9.1(1) states that a "statically matching constraint" requires the value to be static. Note that x3, despite being a constant, is nonstatic because its value depends on x2 which is nonstatic.
found 306835 4.3.2-2 found 416975 4.3.2-2 found 416979 4.3.2-2 found 427107 4.3.2-2 found 427108 4.3.2-2 thanks