Fix typo in as yet dormant code (related to REF_TO keyword, that is not yet active)
authormjsousa
Tue, 20 May 2014 08:24:25 +0100
changeset 891 58109ca87903
parent 890 499486ece119
child 892 54d5d185d6e2
Fix typo in as yet dormant code (related to REF_TO keyword, that is not yet active)
stage1_2/iec_bison.yy
--- a/stage1_2/iec_bison.yy	Thu May 08 12:21:48 2014 +0100
+++ b/stage1_2/iec_bison.yy	Tue May 20 08:24:25 2014 +0100
@@ -4116,7 +4116,7 @@
 	 variable_name_symtable.insert($1, prev_declared_fb_name_token);
 	}
 | global_var_name ':' ref_spec /* defined in IEC 61131-3 v3   (REF_TO ...)*/
-	{$$ = new external_declaration_c($1, new fb_spec_init_c($3, NULL, locloc(@3)), locloc(@$));
+	{$$ = new external_declaration_c($1, $3, locloc(@$));
 	 variable_name_symtable.insert($1, prev_declared_fb_name_token);
 	}
 /* ERROR_CHECK_BEGIN */