This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove the ability to use braced-init for filesystem paths
ClosedPublic

Authored by ldionne on Feb 3 2021, 1:44 PM.

Details

Summary

According to my reading of http://eel.is/c++draft/filesystems#fs.class.path,
the Standard doesn't actually mention that this should work. Since other
implementations don't allow it, allowing it in libc++ is just setting a
portability trap.

Supersedes https://reviews.llvm.org/D89865.

Diff Detail

Event Timeline

ldionne created this revision.Feb 3 2021, 1:44 PM
ldionne requested review of this revision.Feb 3 2021, 1:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2021, 1:44 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne added a subscriber: EricWF.Feb 3 2021, 1:45 PM

@EricWF Do you remember why you added that test and explicitly made that use case work?

ldionne accepted this revision as: Restricted Project.Feb 4 2021, 8:49 AM
This revision is now accepted and ready to land.Feb 4 2021, 8:49 AM
libcxx/include/filesystem