Skip to content

rustc stack overflow on enum A { B = A::B as isize } #24190

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

Closed
andersk opened this issue Apr 8, 2015 · 1 comment
Closed

rustc stack overflow on enum A { B = A::B as isize } #24190

andersk opened this issue Apr 8, 2015 · 1 comment

Comments

@andersk
Copy link
Contributor

andersk commented Apr 8, 2015

$ cat test.rs
enum A { B = A::B as isize }

fn main() {
    println!("{}", A::B as isize);
}
$ rustc test.rs

thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
$ rustc --version --verbose
rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)
binary: rustc
commit-hash: 9854143cba679834bc4ef932858cd5303f015a0e
commit-date: 2015-04-02
build-date: 2015-04-02
host: x86_64-unknown-linux-gnu
release: 1.0.0-beta
@andersk
Copy link
Contributor Author

andersk commented Apr 8, 2015

Duplicate of #23302.

@andersk andersk closed this as completed Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant