-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
cookie.c triggers C1001 under msvc 14 with -O2 #6112
Comments
This is a compiler bug, not a curl bug! It makes me curious. This function you point out to trigger this problem has been around for a long time and lots of users have compiled curl in the mean time. Did really none of them use this optimization level with this compiler version? Can you submit the proposed work-around as a pull request? |
How are you building curl that this happens? I don't recall anyone else reporting this. |
|
lib/cookie.c and lib/strcase.c team up to trigger an internal compiler error under msvc-14.
Here's a reduced translation unit that triggers the bug.
I have verified the bug is hit when _MSC_VER is 1900, but not when _MSC_VER is 1926 (msvc-15).
Disabling optimization for msvc-14 avoids the problem.
The text was updated successfully, but these errors were encountered: