-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Compiling 3.6.0 with GCC > 7, array vs std::array #590 is back #1530
Comments
Thanks for reporting! I am using GCC 7 and 8 in the CI, but did not catch this issue. Strange... Anyway, could you please check whether the issue is fixed in c790b9f? |
Closing as the original issue has been reopened |
Let's have the regression here. |
Ah, I'm too fast. Yes that patch should fix it as locally adding the parenthesis does |
🔖 Release itemThis issue/PR will be part of the next release of the library. This template helps preparing the release notes. Type
Description
|
@nlohmann I just found out that the same code in the |
I changed both files. What is the exact error message? |
The parenthesis are wrong it needs to be |
Could you try again with b33093d? |
No worries - it was me who got this regression slipped in. Thanks for your help! |
As a user I can't reopen an issue and I fear commenting on it might get lost.
Anyway as of the 3.6.0 release #590 is back from the dead.
My guess is that the fix of adding parenthesis was removed by some code formatter
here is the problematic line in the current version:
https://github.com/nlohmann/json/blob/release/3.6.0/include/nlohmann/json.hpp#L5731
Also this problem still appears with GCC 8.2.1
The text was updated successfully, but these errors were encountered: