Skip to content

Conversation

@CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented Oct 10, 2020

MSVC is finally getting around to implementing [[no_unique_address]], which will result in class layout differing with Clang. Let's comment out the uses that are not yet so commented until we reach compiler parity.

Related to MSVC-PR-280491, which implements [[no_unique_address]] "for real" in MSVC.

MSVC is finally getting around to implementing `[[no_unique_address]]`, which will result in class layout differing with Clang. Let's comment out the uses that are not yet so commented until we reach compiler parity.
@CaseyCarter CaseyCarter added the bug Something isn't working label Oct 10, 2020
@CaseyCarter CaseyCarter requested a review from a team as a code owner October 10, 2020 01:31
Copy link
Member

@StephanTLavavej StephanTLavavej 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. I checked out the branch and searched to verify that all occurrences of no_unique_address are commented out.

Copy link
Contributor

@miscco miscco 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, am I understanding it correctly that the feature is WIP in the MSVC side and we do not want to interfere with their work?!

@sylveon
Copy link
Contributor

sylveon commented Oct 10, 2020

My understanding is to avoid ABI/ODR issues between TUs compiled with Clang and TUs compiled with MSVC, until both reach parity.

@StephanTLavavej
Copy link
Member

@sylveon Yep. I've filed #1364 to track that investigation (anyone can help by determining whether Clang supports [[no_unique_address]] on Windows, I forget whether we've confirmed that either way).

@CaseyCarter CaseyCarter self-assigned this Oct 23, 2020
CaseyCarter added a commit that referenced this pull request Oct 23, 2020
@CaseyCarter CaseyCarter merged commit 09459e7 into microsoft:master Oct 23, 2020
@CaseyCarter CaseyCarter deleted the no_unique_address branch October 23, 2020 23:48
@CaseyCarter
Copy link
Contributor Author

CaseyCarter commented Oct 23, 2020

Thanks for addressing this unique problem no-more.

(There's no functional change here, so not Changelogging.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants