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

internal compiler error: typecheck INDREG #1900

Closed
bpowers opened this issue May 30, 2011 · 3 comments
Closed

internal compiler error: typecheck INDREG #1900

bpowers opened this issue May 30, 2011 · 3 comments

Comments

@bpowers
Copy link
Contributor

bpowers commented May 30, 2011

1. What is a short input program that triggers the error?
package main

func getArgs(data map[string]interface{}, keys ...string) {
    ret := map[string]string{}
    var ok bool
    for _, k := range keys {
        ret[k], ok = data[k].(string)
        if !ok {}
    }
}

2. What is the full compiler output?
6g  -o _go_.6 coord.go
typecheck [d56fa0]
.   INDREG a(1) l(7) x(24) tc(2) runtime.ret G0 string
coord.go:7: internal compiler error: typecheck INDREG


3. What version of the compiler are you using?  (Run it with the -V flag.)
[bpowers@vyse go]$ 6g -V
6g version weekly.2011-05-22 8483
(also occurs on r57.1)
@bpowers
Copy link
Contributor Author

bpowers commented May 30, 2011

Comment 1:

I didn't see anything in the language spec about disallowing indirect stores with type
assertions, so I feel like this should work

@rsc
Copy link
Contributor

rsc commented May 31, 2011

Comment 2:

This issue was closed by revision 15dcdf7.

Status changed to Fixed.

@bpowers
Copy link
Contributor Author

bpowers commented May 31, 2011

Comment 3:

awesome, you folks rock

@bpowers bpowers added the fixed label May 31, 2011
@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