]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/90454.cc path construction from void*
authorJonathan Wakely <jwakely@redhat.com>
Wed, 15 May 2019 19:34:59 +0000 (20:34 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 15 May 2019 19:34:59 +0000 (20:34 +0100)
commitb6721f2c477e5a48f647edaf74bb87d867f7e1ed
tree7c1dc5c97a58636bb34324d2858a96d40c145c45
parente993da13a06777a6c73a1b4d2132ae5e8ac9e155
PR libstdc++/90454.cc path construction from void*

Make the filesystem::path constructors SFINAE away for void* arguments,
instead of giving an error due to iterator_traits<void*>::reference.

Backport from mainline
2019-05-13  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/90454.cc path construction from void*
* include/bits/fs_path.h (path::_Path): Use remove_pointer so that
pointers to void are rejected as well as void.
* include/experimental/bits/fs_path.h (path::_Path): Likewise.
* testsuite/27_io/filesystem/path/construct/80762.cc: Also check
pointers to void.
* testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.

From-SVN: r271262
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
libstdc++-v3/testsuite/experimental/filesystem/path/construct/80762.cc