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

"let f = @f;" causes iloop/irecurse #768

Closed
jruderman opened this issue Jul 29, 2011 · 3 comments
Closed

"let f = @f;" causes iloop/irecurse #768

jruderman opened this issue Jul 29, 2011 · 3 comments
Labels
A-type-system Area: Type system I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

Comments

@jruderman
Copy link
Contributor

fn main() {
    let f = @f;
    f();
}

Causes the compiler to iloop

fn main() {
    let f = @f;
}

Causes the compiler to output "Out of stack space, sorry"

Expected: "unresolved name: f" or "use before definition: f" or "cannot determine a type local variable: f".

@catamorphism
Copy link
Contributor

This might be due to the lack of occurs check -- I'll look at it.

@ghost ghost assigned catamorphism Jul 29, 2011
@msullivan
Copy link
Contributor

I strongly suspect it is.

@catamorphism
Copy link
Contributor

Confirmed that subst_vars (in ty.rs) is going into an infinite loop. I'll work on implementing the occurs check.

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
Replace "Field-Less" with "Fieldless"
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Remove unused rustc code

We have modified the following files:
  - Cargo.toml: Remove all configuration that isn't needed.
  - Cargo.lock: Started from scratch

We have kept the following bookrunner dependencies:
  - src/docs
  - src/librustdocs
  - rustdoc-json-types

* Fix compile test source code check.

For some weird reason, compiletest checks the repository path by looking
at the path of a file. I just changed which file it looks for.

* Modified a few git configuration files

* Delete submodules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Projects
None yet
Development

No branches or pull requests

3 participants