-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
v3.0.1 compile error in icc 16.0.4 #947
Comments
Could you try editting the source file and replace the |
Same :/
|
Removing the {} entirely works however - does this type actually need explicit value-init? It looks like the fields would be initialized anyway. |
Yep you're right, it does seem like an ICC bug, but we can simply remove the @nlohmann since this is a trivial fix, could it be part of 3.1.0? |
Would we also need internal_iterator() = default; in Edit: No, I don't think so. |
I don't think this is needed. |
I don't think so... generally you only need that if the default ctor is not implicitly generated, e.g. due to the presence of another ctor with params, to force it to make one. It doesn't hurt, but the compiler will do it anyway. |
@mark-99 Could you please check whether the latest commit fixed the issue? |
I have 3.0.1 rather than HEAD so the line numbers are different, but yes this seems good: Verified on icc 16.0.4, icc 17.0.5, gcc 5.4, gcc 6.3, clang 3.9, clang 4.0. BTW do you have a timescale on v3.1 release? So I know whether to go to the trouble of patching the copy in our local package manager? |
If @theodelrieu finishes #944 tomorrow morning, then the release could be made tomorrow evening. :) |
Awesome - thx. |
You're welcome! |
While this is maybe a compiler defect in icc 16 (icc 17.0.5 worked ok), perhaps there's an easy fix. Note than json v2.x did not have this error.
Source line is GTEST macro:
EXPECT_EQ(j["name"], "Name");
The text was updated successfully, but these errors were encountered: