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: trace(1e-) causes crash #60649

Closed
griesemer opened this issue Jun 7, 2023 · 1 comment
Closed

go/types, types2: trace(1e-) causes crash #60649

griesemer opened this issue Jun 7, 2023 · 1 comment
Assignees
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@griesemer
Copy link
Contributor

Reproducer:

package p
const _ float64 = trace(1e-)

then check this code via go test -run Manual -- filename.

The 1e- leads to an invalid operand and the subsequent assertion fails.

Related to #60605.

@griesemer griesemer added the NeedsFix The path to resolution is known, but the work has not been done. label Jun 7, 2023
@griesemer griesemer added this to the Go1.21 milestone Jun 7, 2023
@griesemer griesemer self-assigned this Jun 7, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/501415 mentions this issue: go/types, types2: don't crash when using trace with an invalid argument

@golang golang locked and limited conversation to collaborators Jun 6, 2024
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.
Projects
None yet
Development

No branches or pull requests

2 participants