You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Program below should run and exit silently, but gccgo it prints a failure. (It prints a failure with cmd/compile too, but cmd/compile fails in the single-package case even: #56057.)
$ go run -compiler=gccgo x.go
FAIL:
*interface { a.i }
*interface { b.i }
$ head -20 go.mod x.go a/a.go b/b.go
==> go.mod <==
module m
go 1.20
==> x.go <==
package main
import (
"fmt"
"m/a"
"m/b"
)
func main() {
if a.X != b.X {
fmt.Printf("FAIL:\n%T\n%T\n", a.X, b.X)
}
}
==> a/a.go <==
package a
type i interface{ M() interface{ i } }
var X interface{} = (*interface{ i })(nil)
==> b/b.go <==
package b
type i interface{ M() interface{ j } }
type j interface{ M() interface{ i } }
var X interface{} = (*interface{ i })(nil)
Program below should run and exit silently, but gccgo it prints a failure. (It prints a failure with cmd/compile too, but cmd/compile fails in the single-package case even: #56057.)
/cc @ianlancetaylor @griesemer
The text was updated successfully, but these errors were encountered: