* Go patch committed: Verify pointer's underlying type
@ 2015-08-04 23:46 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2015-08-04 23:46 UTC (permalink / raw)
To: gcc-patches, gofrontend-dev
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
This patch from Chris Manghane ensures that when verifying a pointer
type, we verify the underlying type. This fixes
https://golang.org/issue/11547 . Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu. Committed to mainline.
Ian
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 805 bytes --]
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE (revision 226596)
+++ gcc/go/gofrontend/MERGE (working copy)
@@ -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: gcc/go/gofrontend/types.h
===================================================================
--- gcc/go/gofrontend/types.h (revision 226510)
+++ gcc/go/gofrontend/types.h (working copy)
@@ -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; }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-04 23:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-04 23:46 Go patch committed: Verify pointer's underlying type Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).