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: structure comparison can cause ICE #3351

Closed
gopherbot opened this issue Mar 19, 2012 · 2 comments
Closed

cmd/gc: structure comparison can cause ICE #3351

gopherbot opened this issue Mar 19, 2012 · 2 comments
Milestone

Comments

@gopherbot
Copy link

by cw@f00f.org:

hg identify: a216dfd16073 tip
6g -V:       6g version weekly.2012-03-13 +360c1d325ed4
OS:          linux amd64


The code below causes an ICE:



package main

import "fmt"

type S struct {
        x int
}

func bar(x interface{}) {}

func main() {
        s1 := S{1}
        s2 := S{1}
        bar(s1 == s2)         // OK                                                                                                                                                                                  
        fmt.Println(s1 == s2) // ERR: internal compiler error: typename ideal bool                                                                                                                                   

}
@ality
Copy link
Member

ality commented Mar 19, 2012

Comment 1:

https://golang.org/cl/5848062/
Thanks for reporting this.

Labels changed: added priority-go1, removed priority-triage.

Owner changed to @ality.

Status changed to Accepted.

@ality
Copy link
Member

ality commented Mar 19, 2012

Comment 3:

This issue was closed by revision e1f22bd.

Status changed to Fixed.

@rsc rsc added this to the Go1 milestone Apr 10, 2015
@rsc rsc removed the priority-go1 label Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
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

3 participants