PR libstdc++/80762 avoid ambiguous __constructible_from<void, void>
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Dec 2018 16:13:43 +0000 (16:13 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 12 Dec 2018 16:13:43 +0000 (16:13 +0000)
commit6b7c0b5559316028d392d2bf9a4a0ca9e7562ce7
tree3e41fc81cb2a566f1fdfd23c505cc73b622d5262
parent5da5fefeeb90d1f3bc750f2c38c6917634127734
PR libstdc++/80762 avoid ambiguous __constructible_from<void, void>

Ensure we don't try to instantiate __is_constructible_from<void, void>,
because there are two partial specializations that are equally good
matches.

PR libstdc++/80762
* include/bits/fs_path.h (path::_Path): Use remove_cv_t and is_void.
* include/experimental/bits/fs_path.h (path::_Path): Likewise.
* testsuite/27_io/filesystem/path/construct/80762.cc: New test.
* testsuite/experimental/filesystem/path/construct/80762.cc: New test.

From-SVN: r267056
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/include/experimental/bits/fs_path.h
libstdc++-v3/testsuite/27_io/filesystem/path/construct/80762.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/filesystem/path/construct/80762.cc [new file with mode: 0644]