-
Notifications
You must be signed in to change notification settings - Fork 790
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
F# compiler bug in release mode in VS2015 Update 1 #759
Comments
Code for the repro is below. The upload of zip files does not seem to be working.
|
Replacing 'set' with 'seq' above also causes the compile error. |
This is the same as the bug fixed by #756. Let's use this as the tracking issue for the problem. |
Thank you for reporting this. The fix is in, it will be in the next release of Visual F#. |
f you do need to get your code to compile and you are using Update 1, it appears sufficient to place something benign prior to any loop where this problem is occurring, like this:
That said I really hope a fix is made available as soon as possible. Obviously these calls should be removed as soon as a fix release is made available. |
In F# compound loops where the sequences are defined locally, in release mode only, F# generates a compile-time error saying that the name of the sequence being looped over is not found, generating error FS0971: Undefined value. Bizarrely this seems to be the case only when the outer loop is over the elements of a set.
I am using Visual Studio 2015 Update 1 RTM - 14.0.24720.00
I have managed to repro this in a few simple lines of code. Please see below.
The text was updated successfully, but these errors were encountered: