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

go/types, types2: internal compiler error: panic #56425

Closed
splace opened this issue Oct 25, 2022 · 4 comments
Closed

go/types, types2: internal compiler error: panic #56425

splace opened this issue Oct 25, 2022 · 4 comments
Assignees
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Milestone

Comments

@splace
Copy link

splace commented Oct 25, 2022

https://go.dev/play/p/PdWqpOHxCFb

@wdvxdr1123
Copy link
Contributor

cc @griesemer

@griesemer griesemer self-assigned this Oct 26, 2022
@griesemer griesemer added this to the Go1.20 milestone Oct 26, 2022
@griesemer griesemer added the NeedsFix The path to resolution is known, but the work has not been done. label Oct 26, 2022
@griesemer
Copy link
Contributor

Thanks for reporting. This is a typechecker bug.

@griesemer
Copy link
Contributor

Slightly simplified reproducer:

package p

const s float32 = 0
var _ = 0 << s

@gopherbot
Copy link

Change https://go.dev/cl/445515 mentions this issue: go/types, types2: use correct shift value when typechecking constant shift

@seankhliao seankhliao changed the title internal compiler error: panic go/types, types2: internal compiler error: panic Oct 26, 2022
romaindoumenc pushed a commit to TroutSoftware/go that referenced this issue Nov 3, 2022
…shift

Fixes golang#56425.

Change-Id: Ieae3fdb5326d4b6f6ec1cdcd579051559e34b35b
Reviewed-on: https://go-review.googlesource.com/c/go/+/445515
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
@golang golang locked and limited conversation to collaborators Oct 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Projects
None yet
Development

No branches or pull requests

4 participants