On Tue, Dec 15, 2020 at 1:01 PM Ian Lance Taylor <[email protected]> wrote:
>
> This patch to the Go frontend avoids knock-on errors from invalid
> interfaces. The test case for this is issue11614.go in the source
> repo. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.
> Committed to mainline.
Sorry, I forgot that this change requires updating a couple of tests.
This patch committed to mainline.
Ian
34c7d3d3b216d674192678443bcfd379ec575d9f
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug195.go
b/gcc/testsuite/go.test/test/fixedbugs/bug195.go
index aef7bd2d894..94f61fff7f1 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/bug195.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/bug195.go
@@ -19,7 +19,7 @@ type I4 interface { // GC_ERROR "invalid recursive type
I4\n\tLINE: I4 refers to
}
type I5 interface { // GC_ERROR "invalid recursive type I5\n\tLINE: I5 refers
to\n\tLINE+4: I6 refers to\n\tLINE: I5$"
- I6 // GCCGO_ERROR "interface"
+ I6
}
type I6 interface {
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug251.go
b/gcc/testsuite/go.test/test/fixedbugs/bug251.go
index 706bb8d6901..977aa49e6a0 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/bug251.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/bug251.go
@@ -8,7 +8,7 @@ package main
type I1 interface { // GC_ERROR "invalid recursive type"
m() I2
- I2 // GCCGO_ERROR "loop|interface"
+ I2
}
type I2 interface {