Skip to content

bounds check failure in trans (again) #811

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
eholk opened this issue Aug 10, 2011 · 0 comments
Closed

bounds check failure in trans (again) #811

eholk opened this issue Aug 10, 2011 · 0 comments

Comments

@eholk
Copy link
Contributor

eholk commented Aug 10, 2011

This snippet of code fails to compile due to a bounds check failure in trans. In my version, it's at line 998. It's the some(id) alt case in get_tydesc.

fn test00_start(ch: chan_t[int], message: int) {
    send(ch, message);
}

chan_t is defined as follows, where task_id and port_id are both typedefed to be ints.

type chan_t[~T] = {
    task : task_id,
    port : port_id
};

send has the following signature:

fn send[~T](ch : chan_t[T], data : -T)
@ghost ghost assigned catamorphism Aug 10, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Add more Linux-based syscall tables

* Add syscall tables to most remaining arches in `src/unix/notbsd`
* Add aarch64/arm musl to CI
* Update dependencies
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
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

2 participants