From patchwork Fri Nov 30 07:04:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Go patch committed: Fix fieldtrack info for unexported type Date: Thu, 29 Nov 2012 21:04:52 -0000 From: Ian Taylor X-Patchwork-Id: 202884 Message-Id: To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com 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('"');