This patch to the Go frontend fixes the fieldtrack info emitted for an
unexported type. Bootstrapped on x86_64-unknown-linux-gnu. Committed
to mainline.
Ian
diff -r 0a58667fb9cd go/expressions.cc
--- a/go/expressions.cc Thu Nov 29 09:34:24 2012 -0800
+++ b/go/expressions.cc Thu Nov 29 22:55:58 2012 -0800
@@ -10621,7 +10621,7 @@
s.append(nt->named_object()->package()->pkgpath());
s.push_back('.');
if (nt != NULL)
- s.append(nt->name());
+ s.append(Gogo::unpack_hidden_name(nt->name()));
s.push_back('.');
s.append(field->field_name());
s.push_back('"');