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

ICE on cast in constant expression #9942

Closed
jld opened this issue Oct 19, 2013 · 2 comments · Fixed by #11832
Closed

ICE on cast in constant expression #9942

jld opened this issue Oct 19, 2013 · 2 comments · Fixed by #11832
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@jld
Copy link
Contributor

jld commented Oct 19, 2013

The input: static S: uint = 23 as uint; [0, ..S]; ()

The result:

error: internal compiler error: node_id_to_type: no type for node `expr 23 as uint (id=15)`

(cc @huonw )

@jld
Copy link
Contributor Author

jld commented Oct 19, 2013

This is reduced from a slightly larger test case I was going to use to try to look into #9837.

@lilyball
Copy link
Contributor

lilyball commented Dec 9, 2013

Just hit this. Rather annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants