stage3/fill_candidate_datatypes.cc
changeset 942 8739d8259932
parent 940 61e2bdae5899
child 945 477393b00f95
--- a/stage3/fill_candidate_datatypes.cc	Sat Oct 25 11:28:48 2014 +0100
+++ b/stage3/fill_candidate_datatypes.cc	Sat Oct 25 13:17:12 2014 +0100
@@ -1966,6 +1966,9 @@
   if (symbol->candidate_datatypes.size() == 1)
     // narrow the symbol->datatype for this symbol as explained above!
     symbol->datatype = symbol->candidate_datatypes[0];
+
+  /*        Since the deref_operator_c may be used inside structures, we must handle set the 'scope' annotation here too! */
+  symbol->scope = symbol->exp->scope;
   
   return NULL;
 }