compiler: Verify pointer type's underlying type.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 4 Aug 2015 23:46:09 +0000 (23:46 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 4 Aug 2015 23:46:09 +0000 (23:46 +0000)
    Fixes golang/go#11547.

    Reviewed-on: https://go-review.googlesource.com/13031

From-SVN: r226598

gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.h

index 70d19fb20e4a4a0781f0d410458c364618a7fa15..99e7aef67a2f70b9ac34ab208dc94e9871d16ded 100644 (file)
@@ -1,4 +1,4 @@
-df080adb06f0e423820f3f6b9604b0c1093ff20a
+6fb7c3509a4eda7d2403900981b53029d6727037
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 042548f65f992c9c6abb58d0c6a876fa85a4c3b8..8d2a982533760f61de4c11ee405be1be33122f29 100644 (file)
@@ -2032,6 +2032,10 @@ class Pointer_type : public Type
   int
   do_traverse(Traverse*);
 
+  bool
+  do_verify()
+  { return this->to_type_->verify(); }
+
   bool
   do_has_pointer() const
   { return true; }