Fix bug: add support for dereferencing of REF_TO to REF_TO xxx (e.g.: bool_var := ref_to_ref_to_bool^^;)
authormjsousa
Sun, 28 Sep 2014 17:48:42 +0100
changeset 935 be4373d07201
parent 934 2a42a68f4b59
child 936 0f7bcc160568
Fix bug: add support for dereferencing of REF_TO to REF_TO xxx (e.g.: bool_var := ref_to_ref_to_bool^^;)
stage3/fill_candidate_datatypes.cc
--- a/stage3/fill_candidate_datatypes.cc	Sun Sep 28 17:39:28 2014 +0100
+++ b/stage3/fill_candidate_datatypes.cc	Sun Sep 28 17:48:42 2014 +0100
@@ -1899,7 +1899,7 @@
     ref_spec_c *ref_spec = dynamic_cast<ref_spec_c *>(symbol->exp->candidate_datatypes[i]);
     
     if (NULL != ref_spec)
-      add_datatype_to_candidate_list(symbol, ref_spec->type_name);
+      add_datatype_to_candidate_list(symbol, search_base_type_c::get_basetype_decl(ref_spec->type_name));
   }
   
   return NULL;