-
Notifications
You must be signed in to change notification settings - Fork 74
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
Tests trigger new -Wreserved-identifier
in clang 13+
#1388
Comments
I think this is a defect of catch2, so we should report there? |
They are aware: catchorg/Catch2#578 |
Marking this as |
Unrelated to this issue, but should we add ourselves (alpaka, cupla, PIConGPU) to catch2 user page? |
Sure, more visibility is always welcome :-) |
I would suggest we name |
I agree, an umbrella "alpaka group" is reasonable. |
We definitely should not declare this as |
I wonder why this warning is visible anyway. We already include the Catch2 header(s) as
Note the The warning is triggered because Catch2 is in violation of the C++ standard. Using |
-Wreserved-identifier
in clang 14 (main)-Wreserved-identifier
in clang 13+
I checked, updated the description before, and now updated the title: This flag will already be present in clang 13 🚀 , so, quite soon, 💥 . |
This is probably because the identifier |
According to the issue I linked above this will be resolved in Catch2's next major release (v3). It remains to be seen if this will be backported to v2 which we currently use, |
However catch3 will have a different interface from catch2. So we would really like a backport, since I think we are happy with catch2 generally (and i think our testing demands are not that specific) and then changing to another interface may be extra work for little gain. |
I just ran into the same issue with clang 14:
|
Judging by the catch2 issue linked above a fix will appear in the next Catch2 release (whenever that is). |
Since it is unlikely that the next Catch2 version is released this week I move this into the alpaka 0.9 project. We can then maybe backport this to 0.8.1. |
A new warning was added in clang main which is triggered by the tests:
-Wno-reserved-identifier
may need to be added toCXX_FLAGS
for clang 13 and 14(maybe also clang 13, have to check.)The text was updated successfully, but these errors were encountered: