compiler: don't use pkgpath for fieldtrack of unexported field
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 21 Aug 2019 17:19:52 +0000 (17:19 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 21 Aug 2019 17:19:52 +0000 (17:19 +0000)
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/191040

From-SVN: r274803

gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc

index 29f5ec01637cefe88758e8538c6525f453fa4f1e..5c0244662bcd8d0cf6e5d8d9f00a86842d46c15d 100644 (file)
@@ -1,4 +1,4 @@
-7da359f4659fffff051c05ff442037cfa61febd5
+82d27f0f140f33406cf59c0fb262f6dba3077f8e
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 0cf1710d0c2e5ec58c293c8c419310543703147c..378dab57a696586af740126718e3d300f02967df 100644 (file)
@@ -13795,7 +13795,7 @@ Field_reference_expression::do_lower(Gogo* gogo, Named_object* function,
   if (nt != NULL)
     s.append(Gogo::unpack_hidden_name(nt->name()));
   s.push_back('.');
-  s.append(field->field_name());
+  s.append(Gogo::unpack_hidden_name(field->field_name()));
   s.push_back('"');
 
   // We can't use a string here, because internally a string holds a