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

Inlined Tuple'd arguments with byref<> cause Debug builds to crash at runtime #820

Closed
manofstick opened this issue Dec 21, 2015 · 2 comments
Labels

Comments

@manofstick
Copy link
Contributor

Another byref<> bug (with #819)

let inline f (x, r:byref<_>) = r <- x
let mutable x = Unchecked.defaultof<_>
f (0, &x)

This crashes at runtime under a debug build as it tried to instantiate a Tuple with a reference type. In the release build that all get optimized away, so it works ok.

@manofstick
Copy link
Contributor Author

Related to #127 (well kind of. That one is just invalid full stop, this one is valid, except that the debug build makes invalid code)

@dsyme
Copy link
Contributor

dsyme commented Jan 8, 2016

Duplicate of #558 I believe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants