Skip to content

Bugfix/fix clang cl #276

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

Merged
merged 9 commits into from
Jun 22, 2023

Conversation

mgovers
Copy link
Member

@mgovers mgovers commented Jun 20, 2023

closes #241

Changes proposed in this PR include:

It was found that in #241 the culprit was the fact that the trait_pointer_to_member struct pointed to the wrong member variable in the memory layout. Maybe this was caused by some different memory or template overload order when dealing with inheritance

Overloading the template with a requires block that only generates the template when the provided base class is identical to the identified base class fixes this template choice mismatch

Could you please pay extra attention to the points below when reviewing the PR:

Please try to repro this on your local machine (build with Clang CL Debug/Release + run all tests)

Testing

I did a matrix test on my computer using [msvc, clang-cl] x [debug, release] with clean reconfigure and clean rebuild all targets and all tests passed after this change

(note: before this change, i verified that the bug in #241 was still there, so the change actually fixed the tests)

@mgovers mgovers added the improvement Improvement on internal implementation label Jun 20, 2023
Signed-off-by: Martijn Govers <[email protected]>
@mgovers mgovers force-pushed the bugfix/fix-clang-cl branch from 740767f to f56f873 Compare June 20, 2023 07:14
mgovers added 6 commits June 20, 2023 09:30
Signed-off-by: Martijn Govers <[email protected]>
Signed-off-by: Martijn Govers <[email protected]>
Signed-off-by: Martijn Govers <[email protected]>
Signed-off-by: Martijn Govers <[email protected]>
Signed-off-by: Martijn Govers <[email protected]>
Signed-off-by: Martijn Govers <[email protected]>
@mgovers mgovers requested a review from TonyXiang8787 June 20, 2023 13:42
@mgovers mgovers marked this pull request as ready for review June 20, 2023 13:42
@mgovers mgovers linked an issue Jun 20, 2023 that may be closed by this pull request
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@TonyXiang8787 TonyXiang8787 merged commit d2e055a into release/short-circuit-calculation Jun 22, 2023
@TonyXiang8787 TonyXiang8787 deleted the bugfix/fix-clang-cl branch June 22, 2023 06:41
@mgovers mgovers mentioned this pull request Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement on internal implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] tests fail for Clang CL
2 participants