compiler: Verify pointer type's underlying type.

Fixes golang/go#11547.
    
    Reviewed-on: https://go-review.googlesource.com/13031

From-SVN: r226598
This commit is contained in:
Ian Lance Taylor 2015-08-04 23:46:09 +00:00
parent d69eea11a4
commit 1a16d27768
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
df080adb06f0e423820f3f6b9604b0c1093ff20a 6fb7c3509a4eda7d2403900981b53029d6727037
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.

View File

@ -2032,6 +2032,10 @@ class Pointer_type : public Type
int int
do_traverse(Traverse*); do_traverse(Traverse*);
bool
do_verify()
{ return this->to_type_->verify(); }
bool bool
do_has_pointer() const do_has_pointer() const
{ return true; } { return true; }