This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Mark filesystem braced_init test as requiring libc++
AbandonedPublic

Authored by mstorsjo on Oct 21 2020, 3:48 AM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

This test fails on both MS STL and libstdc++, with errors like these:

error: use of overloaded operator '=' is ambiguous (with operand types 'std::filesystem::path' and 'void')

p = {};
~ ^ ~~

note: candidate function

path& operator=(path&&) noexcept = default;

note: candidate function

path& operator=(const path&) = default;

note: candidate function

path& operator=(string_type&& _Source) noexcept /* strengthened */ {

I'm not really familiar with these bits of modern C++ though to see what differs to libc++'s header, where this test succeeds, and whether that aspect is mandated by the standard though.

Diff Detail