You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: no test for SUM(m[*]) on a 2-D array in apply-to-all #781
SUM(m2[*]) on a two-dimensional m2, inside an apply-to-all equation, used to fail with a generic "failed to compile fragments" error instead of a diagnostic at the reference.
The code on main should now report it, but no test runs this shape.
Expected: a MismatchedDimensions error on two_mixed at m2[*] naming d2.
The correct spelling, SUM(m1[d1,*]) + SUM(m2[*,*]), should simulate.
Since #1087, a reference with fewer subscripts than dimensions is rejected in lower_subscript with that diagnostic, but the only test is the scalar w[north] * 2.
Whether a wildcard under a reducer in an apply-to-all equation reaches that check has not been confirmed.
Constructed while writing LTM fixtures; not seen in a real model.
Fix
Add the repro and its [*,*] counterpart as rows in mismatched_read_tests.rs, and fix whatever they show.
changed the title [-]engine: mixed-arity multi-source reducer fails fragment compile (SUM(m1[d1,*]) + SUM(m2[*]) with 2-D m2)[/-][+]engine: SUM(m[*]) on a 2-D array gave a generic compile failure[/+]on Oct 12, 2026
changed the title [-]engine: SUM(m[*]) on a 2-D array gave a generic compile failure[/-][+]engine: no test for SUM(m[*]) on a 2-D array in apply-to-all[/+]on Oct 12, 2026
Activity
[-]engine: mixed-arity multi-source reducer fails fragment compile (SUM(m1[d1,*]) + SUM(m2[*]) with 2-D m2)[/-][+]engine: SUM(m[*]) on a 2-D array gave a generic compile failure[/+][-]engine: SUM(m[*]) on a 2-D array gave a generic compile failure[/-][+]engine: no test for SUM(m[*]) on a 2-D array in apply-to-all[/+]