Skip to content
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 compiler warning issued by newest Clang #2231

Merged
merged 3 commits into from
Dec 8, 2021

Conversation

heplesser
Copy link
Contributor

@heplesser heplesser commented Dec 7, 2021

This PR fixes a compiler warning introduced by the last version of Clang (see https://windowsquestions.com/2021/08/12/is-the-class-name-in-same-scope-as-the-out-of-line-definition-of-class-templates-destructor/), which made all macOS tests fail (zero warnings expected).

I am setting this to critical with Milestone 3.2 because all tests will fail in macOS until this is fixed.

@heplesser heplesser added T: Bug Wrong statements in the code or documentation S: Critical Needs to be addressed immediately I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Dec 7, 2021
@heplesser heplesser added this to the NEST 3.2 milestone Dec 7, 2021
@heplesser heplesser added this to In progress in Automated testing via automation Dec 7, 2021
@heplesser heplesser changed the title Fix compiler warning and re-enable full test set on macOS Fix compiler warning issued by newest Clang Dec 7, 2021
@heplesser
Copy link
Contributor Author

I reduced to MINIMAL testing on macOS again. For some reason, Cmake does not find how to compile with OpenMP on the test runner, even though that should work with -Xclang -fopenmp compiler switches and the runner has the same Clang version as I do—all works locally.

Copy link
Contributor

@jougs jougs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Many thanks for taking care!

Automated testing automation moved this from In progress to Reviewer approved Dec 8, 2021
@jougs jougs requested review from hakonsbm and removed request for lekshmideepu December 8, 2021 08:09
Copy link
Contributor

@hakonsbm hakonsbm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! However, I can also add that I found this stackoverflow post which seems to suggest that the warning is due to a defect in the wording of the standard:
https://stackoverflow.com/questions/68751682/is-a-class-templates-name-in-scope-for-a-qualified-out-of-line-destructors-def

@hakonsbm hakonsbm merged commit 0366773 into nest:master Dec 8, 2021
Automated testing automation moved this from Reviewer approved to Done Dec 8, 2021
@heplesser heplesser mentioned this pull request Dec 15, 2021
5 tasks
@heplesser heplesser deleted the fix-dtor-warning branch April 20, 2022 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Critical Needs to be addressed immediately T: Bug Wrong statements in the code or documentation
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants