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

LLVM generates an undefined instruction for this test #701

Closed
eholk opened this issue Jul 15, 2011 · 3 comments
Closed

LLVM generates an undefined instruction for this test #701

eholk opened this issue Jul 15, 2011 · 3 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

Comments

@eholk
Copy link
Contributor

eholk commented Jul 15, 2011

fn start() {
}

fn main() {
    child = spawn start();
    auto child;
}
@eholk
Copy link
Contributor Author

eholk commented Jul 15, 2011

This exposes the same issue:

fn main() {
    p = port[int]();
    auto p;
}

@eholk
Copy link
Contributor Author

eholk commented Jul 15, 2011

This is probably about the simplest version of the same issue:

fn main() {
    x = @true;
    auto x;
}

@brson
Copy link
Contributor

brson commented Aug 23, 2011

Recent scoping changes seem to make it not possible to use before declaration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
Projects
None yet
Development

No branches or pull requests

2 participants