This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Avoid P0138R2, direct-list-init of fixed enums from integers.
ClosedPublic

Authored by STL_MSFT on Apr 21 2017, 6:25 PM.

Details

Summary

[libcxx] [test] Avoid P0138R2, direct-list-init of fixed enums from integers.

This C++17 Core Language feature isn't necessary when testing std::byte.
It's a minor convenience, but it limits test coverage to very new compilers.

(I encountered this because C1XX currently has a bug in this feature, and our Clang/C2 is still 3.8 and missing this feature. But these tests had UNSUPPORTED comments knocking out several versions of Clang, so the impact isn't just limited to us.)

Diff Detail

Event Timeline

STL_MSFT created this revision.Apr 21 2017, 6:25 PM
EricWF accepted this revision.May 4 2017, 1:18 AM

Could you add a separate test that performs direct-list-init of fixed enums from integers, and XFAIL it accordingly? Testing it found a bug, so I don't want to complete eliminate that test coverage.

Other than that this LGTM.

This revision is now accepted and ready to land.May 4 2017, 1:18 AM
STL_MSFT closed this revision.May 12 2017, 2:12 PM