# HG changeset patch # User John W. Eaton # Date 1368523459 14400 # Node ID 8291109ac3fd68c079bcf582f57b8764db5da150 # Parent cbb1bb7a5c3d11fda580f46c49d1340a0fb077ff require that dynamic field names have only one row * pt-idx.cc (tree_index_expression::get_struct_index): Require field name to have one row. diff -r cbb1bb7a5c3d -r 8291109ac3fd libinterp/parse-tree/pt-idx.cc --- a/libinterp/parse-tree/pt-idx.cc Tue May 14 05:23:53 2013 -0400 +++ b/libinterp/parse-tree/pt-idx.cc Tue May 14 05:24:19 2013 -0400 @@ -217,7 +217,7 @@ if (! error_state) { - if (t.is_string ()) + if (t.is_string () && t.rows () == 1) fn = t.string_value (); else error ("dynamic structure field names must be character strings");