From c4cff3b3555e509ecbefa3d2298a54758f687bf5 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 24 Jun 2017 09:23:42 -0700 Subject: 3949 --- 055shape_shifting_container.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '055shape_shifting_container.cc') diff --git a/055shape_shifting_container.cc b/055shape_shifting_container.cc index 8a7d75e1..702f2842 100644 --- a/055shape_shifting_container.cc +++ b/055shape_shifting_container.cc @@ -617,6 +617,7 @@ void test_container_sizes_recursive_shape_shifting_container() { :(before "End compute_container_address_offsets Non-atom Special-cases") const type_tree* root = get_base_type(type); +if (!contains_key(Type, root->value)) return; // error raised elsewhere type_info& info = get(Type, root->value); if (info.kind == CONTAINER) { compute_container_address_offsets(info, type, location_for_error_messages); @@ -681,6 +682,14 @@ def main [ ] # no crash +:(scenario typos_in_recipes) +% Hide_errors = true; +def foo [ + local-scope + x:adress:array:number <- copy 0 # typo +] +# shouldn't crash + //:: 'merge' on shape-shifting containers :(scenario merge_check_shape_shifting_container_containing_exclusive_container) -- cgit 1.4.1-2-gfad0