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

No recursion limit for projection #25945

Closed
arielb1 opened this issue Jun 1, 2015 · 1 comment
Closed

No recursion limit for projection #25945

arielb1 opened this issue Jun 1, 2015 · 1 comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

Comments

@arielb1
Copy link
Contributor

arielb1 commented Jun 1, 2015

struct X<A>(A);
trait Foo { type Out; }

impl<T> Foo for X<T> {
    type Out = <X<T> as Foo>::Out;
}

fn main() {}

causes a stack overflow.

@bluss
Copy link
Member

bluss commented Jun 2, 2015

This is a stack overflow inside middle::traits::project::normalize_projection_type

@arielb1 arielb1 added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. and removed I-wrong labels Sep 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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