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

compiler/constants: trying to convert a floating-point constant to float64 with overflow hangs the compiler #815

Closed
zapateo opened this issue Aug 18, 2021 · 2 comments
Assignees
Labels
bug Bug: something already implemented does not work as it should tchecker Related to type checker

Comments

@zapateo
Copy link
Member

zapateo commented Aug 18, 2021

This code:

package main

func main() {
	var _ = 1e100000000
}

hangs the compiler consuming the CPU at 100%.

@zapateo zapateo added bug Bug: something already implemented does not work as it should critical-bug A critical bug, that is a bug that takes precedence over other bugs (for example cannot be bypassed) labels Aug 18, 2021
@zapateo zapateo added this to the Public Release milestone Aug 18, 2021
@gazerro
Copy link
Member

gazerro commented Aug 19, 2021

See issue golang/go#11327.

@gazerro
Copy link
Member

gazerro commented Aug 19, 2021

See issue golang/go#11068.

@gazerro gazerro changed the title Variable with very big value hangs the compiler consuming the CPU at 100% compiler/constants: trying to convert a floating-point constant to float64 with overflow hangs the compiler Aug 19, 2021
@gazerro gazerro added tchecker Related to type checker and removed critical-bug A critical bug, that is a bug that takes precedence over other bugs (for example cannot be bypassed) labels Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug: something already implemented does not work as it should tchecker Related to type checker
Projects
None yet
Development

No branches or pull requests

2 participants