Go patch committed: Fix fieldtrack info for unexported type

Submitted by Ian Taylor on Nov. 30, 2012, 7:04 a.m.

Details

Message ID mcrhao7po4r.fsf@google.com
State New
Headers show

Commit Message

Ian Taylor Nov. 30, 2012, 7:04 a.m.
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

Patch hide | download patch | download mbox

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('"');