Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/gc: internal compiler error with multiple blank _ methods in interfaces #6606

Closed
griesemer opened this issue Oct 16, 2013 · 7 comments
Closed

Comments

@griesemer
Copy link
Contributor

$ cat x.go
package p

type T interface{
    _()
    _()
}

$ go tool 6g x.go
x.go:6: internal compiler error: sigcmp vs sortinter _ _

It's inclear what a compiler should do, and the spec is silent. See spec issue #6604.
Once 6604 is resolved, this should be fixed.

For the reference: gccgo reports a duplicate method error which is peculiar since we
never report duplicates of _ objects. For instance, in structs we count on being able to
define multiple _ fields.
@griesemer
Copy link
Contributor Author

Comment 1:

Labels changed: added compilerbug.

@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 2:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 3:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 4:

Labels changed: added repo-main.

@griesemer
Copy link
Contributor Author

Comment 5:

Per the fix for 6604, blank methods are not permitted in interface types anymore.

@gopherbot
Copy link

Comment 6:

CL https://golang.org/cl/156210044 mentions this issue.

@paranoiacblack
Copy link
Contributor

Comment 7:

This issue was closed by revision db4dad7.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants