This patch to the Go frontend fixes an erroneous use of VEC, pointed out
by Diego.  The macro magic behind VEC is such that this didn't make any
difference.  Bootstrapped and tested on x86_64-unknown-linux-gnu.
Committed to mainline and 4.7 branch.

Ian

diff -r 4c5b81b8add0 go/gogo-tree.cc
--- a/go/gogo-tree.cc	Wed May 16 22:28:58 2012 -0700
+++ b/go/gogo-tree.cc	Fri May 18 13:13:48 2012 -0700
@@ -401,7 +401,7 @@
 
   // Build a constructor for the struct.
 
-  VEC(constructor_elt,gc*) root_list_init = VEC_alloc(constructor_elt, gc, 2);
+  VEC(constructor_elt,gc)* root_list_init = VEC_alloc(constructor_elt, gc, 2);
 
   elt = VEC_quick_push(constructor_elt, root_list_init, NULL);
   field = TYPE_FIELDS(root_list_type);

Reply via email to