From: Ian Lance Taylor <iant@google.com>
To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com
Subject: Go patch committed: Fix fieldtrack info for unexported type
Date: Fri, 30 Nov 2012 08:44:00 -0000 [thread overview]
Message-ID: <mcrhao7po4r.fsf@google.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 161 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 426 bytes --]
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('"');
reply other threads:[~2012-11-30 7:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mcrhao7po4r.fsf@google.com \
--to=iant@google.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gofrontend-dev@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).