Skip to content

"Invalid cast" with log ret #935

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
jruderman opened this issue Sep 16, 2011 · 3 comments
Closed

"Invalid cast" with log ret #935

jruderman opened this issue Sep 16, 2011 · 3 comments

Comments

@jruderman
Copy link
Contributor

fn f() { log ret; }
fn main() { }

Assertion failed: (S->getType()->isPointerTy() && "Invalid cast"), function getPointerCast, file Constants.cpp, line 1275.

@marijnh marijnh reopened this Sep 21, 2011
@marijnh
Copy link
Contributor

marijnh commented Sep 21, 2011

The patch caused several issues. I've reverted it for now.

nikomatsakis pushed a commit to nikomatsakis/rust that referenced this issue Sep 21, 2011
brson pushed a commit to brson/rust that referenced this issue Sep 22, 2011
@jruderman
Copy link
Contributor Author

I guess this was fixed for good in graydon@4204845. I added this issue's testcase, plus a few more, in graydon@7b1a3bb.

erickt pushed a commit to erickt/rust that referenced this issue Sep 23, 2011
@catamorphism
Copy link
Contributor

I'm not sure exactly what happened here, but the unreachable-code.rs test had disappeared from the repo. I re-added (and updated) it, and it works, except for the last function (fail_then_concat). I'll open up a new bug for that.

coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
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

4 participants