diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-04 23:46:09 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-04 23:46:09 +0000 |
commit | 30aac3cdae8793b23f2ce5b042e29d67cb1990e9 (patch) | |
tree | 8443eebd3804b828eb04f3e61fd76f0ca73b5374 /gcc/go | |
parent | abd26de0838d43ca602bfb96fdd4bdacc718c433 (diff) | |
download | gcc-30aac3cdae8793b23f2ce5b042e29d67cb1990e9.tar.gz |
compiler: Verify pointer type's underlying type.
Fixes golang/go#11547.
Reviewed-on: https://go-review.googlesource.com/13031
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226598 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/types.h | 4 |
2 files changed, 5 insertions, 1 deletions
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 @@ -2033,6 +2033,10 @@ class Pointer_type : public Type do_traverse(Traverse*); bool + do_verify() + { return this->to_type_->verify(); } + + bool do_has_pointer() const { return true; } |