libstdc++: Remove incorrect static specifiers
authorJonathan Wakely <jwakely@redhat.com>
Sat, 23 May 2020 08:00:16 +0000 (09:00 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 23 May 2020 08:40:16 +0000 (09:40 +0100)
commit00c8f2a5e3a21d93a03182cacbae4badc02a37f1
tree1170ab3f56443d41d55df17e89788015689a2244
parent988b853f9c829742907ae22ac66de56facfc7bc5
libstdc++: Remove incorrect static specifiers

These functions were originally static members of the path class, but
the 'static' specifiers were not removed when they were moved to
namespace scope. This causes ODR violations when the functions are
called from functions defined in the header, which is incompatible with
Nathan's modules branch.  Change them to 'inline' instead.

* include/bits/fs_path.h (__detail::_S_range_begin)
(__detail::_S_range_end): Remove unintentional static specifiers.
* include/experimental/bits/fs_path.h (__detail::_S_range_begin)
(__detail::_S_range_end): Likewise.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/include/experimental/bits/fs_path.h