-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix MSVC workaround with FMT_ENFORCE_COMPILE_STRING #2049
Conversation
Could you post a full repro and the error from MSVC for future reference? |
Full Repro can be achieved by simply disabling this #ifdef. I suspect the error has something to do with the depth of template nesting but wasn't able to narrow down the repro case any further. Full log of what I see locally here:
|
Considering that MSVC 2017 is too buggy to support |
This is happening in the latest MSVC, 2019. This is also the only place it fails. |
That's unfortunate but I don't think the version matters. If MSVC fails in such basic case, it can fail on user code making enabling |
Per comments in #2038, This is just the proper fix for a previous attempt at working around this compile error. Though Microsoft reported that a related error had been resolved (https://developercommunity.visualstudio.com/content/problem/1256077/internal-compiler-failure-with-macro-defining-lamb.html) in the latest build of MSVC, the more complex case is still a problem, which I've reported here: https://developercommunity.visualstudio.com/content/problem/1277597/internal-compiler-c0001-error-on-complex-nested-la.html