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

8g crash with int64: internal compiler error: split64 clean #887

Closed
ianlancetaylor opened this issue Jun 26, 2010 · 5 comments
Closed

8g crash with int64: internal compiler error: split64 clean #887

ianlancetaylor opened this issue Jun 26, 2010 · 5 comments

Comments

@ianlancetaylor
Copy link
Contributor

Compiling this test case with 8g:


package p

func F(p []int64, i int64) {
    _ = p[i]
    _ = p[i]
    _ = p[i]
    _ = p[i]
    _ = p[i]
    _ = p[i]
    _ = p[i]
    _ = p[i]
    _ = p[i]
}

gives me

foo.go:12: internal compiler error: split64 clean

The test case compiles with 6g.  The test case compiles with 8g if I remove one of the
assignment lines.
@robpike
Copy link
Contributor

robpike commented Jun 26, 2010

Comment 1:

Owner changed to k...@golang.org.

Status changed to Accepted.

@ken
Copy link
Contributor

ken commented Jun 28, 2010

Comment 2:

This issue was closed by revision e5d748a.

Status changed to Fixed.

@adonovan
Copy link
Member

adonovan commented Feb 7, 2013

Comment 3:

This has regressed.

Status changed to Accepted.

@adonovan
Copy link
Member

adonovan commented Feb 7, 2013

Comment 4:

Sorry, forgot to attach the the testcase:
package main
func f(x byte, y uint64) {
    var r byte
    switch y {
    case 1:
        r = x << y // '>>' triggers it too
    case 2:
        r = x << y
    case 3:
        r = x << y
    case 4:
        r = x << y
    case 5:
        r = x << y
    case 6:
        r = x << y
    case 7:
        r = x << y
    case 8:
        r = x << y
    case 9:
        r = x << y
    case 10:
        r = x << y
    }
    _ = r
}

Owner changed to @rsc.

@rsc
Copy link
Contributor

rsc commented Feb 7, 2013

Comment 5:

This issue was closed by revision 7594440.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
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

6 participants