Patchwork Go patch committed: Fix fieldtrack info for unexported type

login
register
mail settings
Submitter Ian Taylor
Date Nov. 30, 2012, 7:04 a.m.
Message ID <mcrhao7po4r.fsf@google.com>
Download mbox | patch
Permalink /patch/202884/
State New
Headers show

Comments

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

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