Skip to content

No, unique address! - #1363

Merged
Casey Carter (CaseyCarter) merged 1 commit into
microsoft:masterfrom
CaseyCarter:no_unique_address
Oct 23, 2020
Merged

No, unique address!#1363
Casey Carter (CaseyCarter) merged 1 commit into
microsoft:masterfrom
CaseyCarter:no_unique_address

Conversation

@CaseyCarter

@CaseyCarter Casey Carter (CaseyCarter) commented Oct 10, 2020

Copy link
Copy Markdown
Contributor

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 Casey Carter (CaseyCarter) added the bug Something isn't working label Oct 10, 2020
@CaseyCarter
Casey Carter (CaseyCarter) requested a review from a team as a code owner October 10, 2020 01:31

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
Member

Charles Milette (@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

Casey Carter (CaseyCarter) commented Oct 23, 2020

Copy link
Copy Markdown
Contributor Author

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