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/compile: get an internal error when deliberately use '%' operator with int and complex #31110

Sasasu opened this issue Mar 28, 2019 · 2 comments


Copy link

@Sasasu Sasasu commented Mar 28, 2019

What version of Go are you using (go version)?

$ go version
> go version go1.12.1 linux/amd64

Does this issue reproduce with the latest release?


What operating system and processor architecture are you using (go env)?

go env Output
$ go env
> on goplayground

What did you do?

1i % 1 or 1 % 1i

What did you expect to see?

compiler print "use remainder operator between integer and complex value" and exit


compiler print "constant %g truncated to real" and exit

What did you see instead?

internal error


This comment has been minimized.

Copy link

@josharian josharian commented Mar 28, 2019


This comment has been minimized.

Copy link

@mdempsky mdempsky commented Mar 28, 2019

Duplicate of #31060.

@mdempsky mdempsky closed this Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.