From 1a16d27768a5cb3b01661f66a6496827cfe9389f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 4 Aug 2015 23:46:09 +0000 Subject: [PATCH] compiler: Verify pointer type's underlying type. Fixes golang/go#11547. Reviewed-on: https://go-review.googlesource.com/13031 From-SVN: r226598 --- gcc/go/gofrontend/MERGE | 2 +- gcc/go/gofrontend/types.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 70d19fb20e4..99e7aef67a2 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -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. diff --git a/gcc/go/gofrontend/types.h b/gcc/go/gofrontend/types.h index 042548f65f9..8d2a9825337 100644 --- a/gcc/go/gofrontend/types.h +++ b/gcc/go/gofrontend/types.h @@ -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; } -- 2.30.2