This is an archive of the discontinued LLVM Phabricator instance.

Resolve LWG issue 2426
AbandonedPublic

Authored by EricWF on Oct 16 2019, 11:28 AM.

Details

Reviewers
mclow.lists
ldionne
rsmith
zoecarver
Group Reviewers
Restricted Project
Summary

This patch checks that expected is loaded before it is used. Libc++ already does this.

Event Timeline

zoecarver created this revision.Oct 16 2019, 11:28 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 16 2019, 11:28 AM
ldionne requested changes to this revision.Oct 16 2019, 11:38 AM

If we want to mark the LWG issue as being resolved for libc++, I think the test should be moved to the libc++ test suite. Otherwise, we're only assessing that libc++ implements LWG2426 on Clang.

This revision now requires changes to proceed.Oct 16 2019, 11:38 AM
EricWF commandeered this revision.Sep 14 2023, 1:43 PM
EricWF edited reviewers, added: zoecarver; removed: EricWF.

If we want to mark the LWG issue as being resolved for libc++, I think the test should be moved to the libc++ test suite. Otherwise, we're only assessing that libc++ implements LWG2426 on Clang.

I don't agree. Clang implements this behavior, the fact that C++ chose to put std::atomic in the library rather than the language has more to do with C++ and less to do with implementation responsibility.
If making changes to libc++ won't change the output of this test, then having the test doesn't matter.

I've marked the LWG issue as complete in a separate commit, and I'm going to close this now.

Herald added a reviewer: Restricted Project. · View Herald TranscriptSep 14 2023, 1:43 PM
Herald added a project: Restricted Project. · View Herald Transcript
EricWF abandoned this revision.Sep 14 2023, 1:43 PM