compiler: don't name type descriptor for alias type
authorIan Lance Taylor <iant@golang.org>
Sat, 5 Dec 2020 16:09:53 +0000 (08:09 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 7 Dec 2020 17:33:21 +0000 (09:33 -0800)
The test case is https://golang.org/cl/275632.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/275652

gcc/go/gofrontend/MERGE
gcc/go/gofrontend/names.cc

index 019aafdde9a45fcbcd9eefbf9ba2617af9861d02..02083edeece42fafdcbe546daa1dad5b0ce096ba 100644 (file)
@@ -1,4 +1,4 @@
-342e5f0b349553a69d7c99a18162ae2a1e6e5775
+2184750d74d37580486e90df1284c07fdee91670
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 0097417cff0003edc6352784259efeb67c55ce3e..8e73e5e157c2418647b44d6fb5264ff71a773402 100644 (file)
@@ -1017,7 +1017,7 @@ Gogo::type_descriptor_backend_name(const Type* type, Named_type* nt,
   bool is_pointer = false;
   if (nt == NULL && type->points_to() != NULL)
     {
-      nt = type->points_to()->named_type();
+      nt = type->points_to()->unalias()->named_type();
       is_pointer = true;
     }