libstdc++: Fix error in filesystem::path with Clang
commite547d1341b1fe90672c9b982c4a98f8197237bb7
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Oct 2021 22:27:54 +0000 (15 23:27 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Oct 2021 23:44:28 +0000 (16 00:44 +0100)
tree7869c6a3d6a8475c539fda0d242f4034f3dff048
parent929abc7fe3ad4491ac412ca232e055618559f268
libstdc++: Fix error in filesystem::path with Clang

THis fixes teh following error seen with Clang:

error: function '_S_convert<std::basic_string_view<char8_t>>' with deduced
return type cannot be used before it is defined
          return string_type(_S_convert(std::u8string_view(__str)));
                             ^

libstdc++-v3/ChangeLog:

* include/bits/fs_path.h (path::_S_convert(T)): Avoid recursive
call to function with deduced return type.
libstdc++-v3/include/bits/fs_path.h