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 returning a local unwrapped dvec inside an impl #2590

Closed
erickt opened this issue Jun 14, 2012 · 0 comments
Closed

ICE when returning a local unwrapped dvec inside an impl #2590

erickt opened this issue Jun 14, 2012 · 0 comments
Labels
A-typesystem Area: The type system I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone

Comments

@erickt
Copy link
Contributor

erickt commented Jun 14, 2012

This code should be rejected outright since I'm trying to move a dvec out of a record without consuming the record, but it's ICEing instead of a proper error message:

import dvec::dvec;

type parser = {
    tokens: dvec<int>,
};

impl parser for parser {
    fn parse() -> [mut int] {
        dvec::unwrap(self.tokens)
    }
}

Returns:

./mustache.rs:9:21: 9:25 error: internal compiler error: illegal reader (lnk_exit) for `vk_self`
./mustache.rs:9         dvec::unwrap(self.tokens)
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 22, 2022
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typesystem Area: The 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

2 participants