gcc/libstdc++-v3/include/experimental
Jonathan Wakely 45aa7a4476 libstdc++: Fix filesystem::path constraints for volatile [PR 100630]
The constraint check for filesystem::path construction uses
decltype(__is_path_src(declval<Source>())) which mean it considers
conversion from an rvalue.  When Source is a volatile-qualified type
it cannot use is_path_src(const Unknown&) because a const lvalue
reference can only bind to a non-volatile rvalue.

Since the relevant path members all have a const Source& parameter,
the constraint should be defined in terms of declval<const Source&>(),
not declval<Source>(). This avoids the problem of volatile-qualified
rvalues, because we no longer use an rvalue at all.

libstdc++-v3/ChangeLog:

	PR libstdc++/100630
	* include/experimental/bits/fs_path.h (__is_constructible_from):
	Test construction from a const lvalue, not an rvalue.
	* testsuite/27_io/filesystem/path/construct/100630.cc: New test.
	* testsuite/experimental/filesystem/path/construct/100630.cc:
	New test.
2021-05-17 17:58:46 +01:00
..
bits libstdc++: Fix filesystem::path constraints for volatile [PR 100630] 2021-05-17 17:58:46 +01:00
algorithm
any libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
array libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
buffer libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
chrono
deque
executor
filesystem
forward_list
functional
internet libstdc++: Minor refactoring in <experimental/internet> 2021-04-27 14:04:36 +01:00
io_context libstdc++: Allow net::io_context to compile without <poll.h> [PR 100180] 2021-04-23 13:54:39 +01:00
iterator
list
map
memory
memory_resource
net
netfwd
numeric
optional libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
propagate_const libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
random
ratio
regex
set
simd libstdc++: Fix copyright dates for simd headers and tests 2021-01-28 18:13:03 +00:00
socket libstdc++: Use <sys/socket.h> features conditionally [PR 100285] 2021-04-30 14:29:20 +01:00
source_location
string
string_view
system_error
timer
tuple
type_traits
unordered_map
unordered_set
utility
vector