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 with invalid syntax #5500

Closed
thestinger opened this issue Mar 22, 2013 · 5 comments · Fixed by #10067

Comments

@thestinger
Copy link
Contributor

commented Mar 22, 2013

(updated test case for bug)

The following test inputs:

fn main() { &fail!() }

or, more elaborately:

struct TrieMapIterator<'self> {
    priv node: &'self uint
}

fn main() {
    let a = 5;
    let _iter = TrieMapIterator{node: &a};
    _iter.node = &
    fail!()
}

yields the ICE failure:

/tmp/issue5500.rs:8:17: 10:1 error: internal compiler error: ty_region() invoked on in appropriate ty: &ty_bot
/tmp/issue5500.rs:8     _iter.node = &
/tmp/issue5500.rs:9     fail!()
/tmp/issue5500.rs:10 }

(original bug test case follows)

struct TrieMapIterator {
    priv node: &'self uint
}

fn main() {
    let a = 5;
    let iter = TrieMapIterator{node: &a};
    iter.node = &
    fail!()
}
@jdm

This comment has been minimized.

Copy link
Contributor

commented Mar 22, 2013

This may or may not be the same failure as

fn main() { &fail!() }

which fails with 'ty_region() invoked on in appropriate ty: ty_bot', /run/media/jdm/ssd/rust/src/librustc/middle/ty.rs:2760.

@toddaaro

This comment has been minimized.

Copy link
Contributor

commented Jul 3, 2013

Visited for triage. Was able to reproduce. Nominating for "maturity number 5 - production ready".

@graydon

This comment has been minimized.

Copy link
Contributor

commented Aug 8, 2013

accepted for production-ready milestone

@graydon

This comment has been minimized.

Copy link
Contributor

commented Aug 8, 2013

just a bug, removing milestone/nomination.

@catamorphism

This comment has been minimized.

Copy link
Contributor

commented Oct 23, 2013

Both the smaller and the bigger versions still ICE as of b477f7a

@bors bors closed this in dcdcd30 Oct 25, 2013

bors added a commit that referenced this issue Feb 11, 2014
auto merge of #12165 : fhahn/rust/change-some-tests, r=brson
While working on #11363 I stumbled over a couple of ignored tests, that seem to be fixed or invalid.

* src/test/run-pass/issue-3559.rs was fixed in #4726
* src/test/compile-fail/borrowck-call-sendfn.rs was fixed in #2978
* update src/test/compile-fail/issue-5500-1.rs to work with current Rust (I'm not 100% sure if the original condition is tested as mentioned in #5500, but I think so)
* removed src/test/compile-fail/issue-5500.rs because it is tested in
    src/test/run-fail/issue-5500.rs (they are the same test cases, I just renamed src/test/run-fail/addr-of-bot.rs to be consistent with the other issue name
bors added a commit that referenced this issue Feb 12, 2014
auto merge of #12165 : fhahn/rust/change-some-tests, r=alexcrichton
While working on #11363 I stumbled over a couple of ignored tests, that seem to be fixed or invalid.

* src/test/run-pass/issue-3559.rs was fixed in #4726
* src/test/compile-fail/borrowck-call-sendfn.rs was fixed in #2978
* update src/test/compile-fail/issue-5500-1.rs to work with current Rust (I'm not 100% sure if the original condition is tested as mentioned in #5500, but I think so)
* removed src/test/compile-fail/issue-5500.rs because it is tested in
    src/test/run-fail/issue-5500.rs (they are the same test cases, I just renamed src/test/run-fail/addr-of-bot.rs to be consistent with the other issue name
bors added a commit that referenced this issue Feb 12, 2014
auto merge of #12165 : fhahn/rust/change-some-tests, r=alexcrichton
While working on #11363 I stumbled over a couple of ignored tests, that seem to be fixed or invalid.

* src/test/run-pass/issue-3559.rs was fixed in #4726
* src/test/compile-fail/borrowck-call-sendfn.rs was fixed in #2978
* update src/test/compile-fail/issue-5500-1.rs to work with current Rust (I'm not 100% sure if the original condition is tested as mentioned in #5500, but I think so)
* removed src/test/compile-fail/issue-5500.rs because it is tested in
    src/test/run-fail/issue-5500.rs (they are the same test cases, I just renamed src/test/run-fail/addr-of-bot.rs to be consistent with the other issue name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.