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: complexgen: unknown op CALLMETH #2582

Closed
gopherbot opened this issue Dec 19, 2011 · 7 comments
Closed

internal compiler error: complexgen: unknown op CALLMETH #2582

gopherbot opened this issue Dec 19, 2011 · 7 comments
Milestone

Comments

@gopherbot
Copy link
Contributor

by jacobsa@google.com:

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

    package foo
    
    import (
        "reflect"
    )
    
    func EqualsFloat32(e float32, c reflect.Value) bool {
        rl := real(c.Complex())
        im := imag(c.Complex())
    
        if (im == 0 && rl == float64(e)) {
            return true
        }
    
        return false
    }



2. What is the full compiler output?

    $ 6g equals_test.go 
    complexgen: unknown op [1002afd58]
    .   CALLMETH u(100) l(8) tc(1) complex128
    .   .   DOTMETH u(2) l(8) tc(1) method(v reflect.Value)func() complex128
    .   .   .   NAME-reflect.Value.Complex u(1) a(1) l(8) x(0+0)
    .   CALLMETH-list
    .   .   AS u(1) l(8) tc(1)
    .   .   .   INDREG a(1) l(8) x(0+0) tc(1) reflect.v G0 reflect.Value
    .   .   .   NAME-c u(1) a(1) g(112) l(7) x(8+0) class(PPARAM) f(1) tc(1) used(1) reflect.Value
    equals_test.go:8: internal compiler error: complexgen: unknown op CALLMETH
    
    Please file a bug report including a short program that triggers the error.
    http://code.google.com/p/go/issues/entry?template=compilerbug
    $



3. What version of the compiler are you using?  (Run it with the -V flag.)

    6g version release.r60.3 9516
@gopherbot
Copy link
Contributor Author

Comment 1 by jacobsa@google.com:

FYI, this also happens with this version of 6g:
    6g version weekly.2011-12-14 10879

@adg
Copy link
Contributor

adg commented Jan 4, 2012

Comment 2:

Labels changed: added compilerbug.

Owner changed to @rsc.

Status changed to Accepted.

@adg
Copy link
Contributor

adg commented Jan 4, 2012

Comment 3:

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

@robpike
Copy link
Contributor

robpike commented Jan 13, 2012

Comment 4:

Owner changed to builder@golang.org.

@lvdlvd
Copy link

lvdlvd commented Jan 13, 2012

Comment 5:

Owner changed to @lvdlvd.

@lvdlvd
Copy link

lvdlvd commented Jan 23, 2012

Comment 6:

Status changed to Started.

@lvdlvd
Copy link

lvdlvd commented Jan 23, 2012

Comment 7:

This issue was closed by revision 5ad9e2d.

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

5 participants