# HG changeset patch # User jwe # Date 820872175 0 # Node ID 62ad73f2ebd0de7d55fc0fc721cc7c7006b0db5c # Parent c5f9b6cea4a8cb3aa92e05bc6a77b33d6fa50701 [project @ 1996-01-05 20:02:55 by jwe] diff --git a/src/pt-const.cc b/src/pt-const.cc --- a/src/pt-const.cc +++ b/src/pt-const.cc @@ -3070,6 +3070,12 @@ panic_impossible (); break; } + + // Do the right thing for assignments like `x(1) = pi' when x is + // undefined before the assignment. + + if (is_matrix_type () || is_range ()) + maybe_mutate (); } /*