From: Ian Lance Taylor Date: Sat, 5 Dec 2020 16:09:53 +0000 (-0800) Subject: compiler: don't name type descriptor for alias type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9104775e3beceab247050733da97fbba5341cb7;p=gcc.git compiler: don't name type descriptor for alias type The test case is https://golang.org/cl/275632. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/275652 --- diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 019aafdde9a..02083edeece 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -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. diff --git a/gcc/go/gofrontend/names.cc b/gcc/go/gofrontend/names.cc index 0097417cff0..8e73e5e157c 100644 --- a/gcc/go/gofrontend/names.cc +++ b/gcc/go/gofrontend/names.cc @@ -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; }