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 when passing too many arguments to a function #4935

Closed
jdm opened this issue Feb 14, 2013 · 1 comment
Closed

ICE when passing too many arguments to a function #4935

jdm opened this issue Feb 14, 2013 · 1 comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-typesystem Area: The type system E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone

Comments

@jdm
Copy link
Contributor

jdm commented Feb 14, 2013

rusti> fn foo(a: uint) {} 
()
rusti> foo(5, 6)
<anon>:37:0: 38:1 error: this function takes 1 parameter but 2 parameters were supplied
<anon>:37 foo(5, 6)
<anon>:38 })
rust: task failed at 'index out of bounds: the len is 1 but the index is 1', /run/media/jdm/ssd/rust/src/librustc/middle/typeck/check/mod.rs:1250
bors added a commit that referenced this issue Feb 19, 2013
@catamorphism
Copy link
Contributor

Fixed in a782efc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-typesystem Area: The type system E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants