]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Remove incorrect static specifiers
authorJonathan Wakely <jwakely@redhat.com>
Sat, 23 May 2020 17:40:53 +0000 (18:40 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 23 May 2020 17:40:53 +0000 (18:40 +0100)
commit415d3cd72f6418d21bc4897676fc79368bfc8d36
tree9d752865e0fcfb63334d02a7a76049addcb7e8eb
parent3ba391077d41324f6c0585f0ec76be0f44dd5b43
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. Change them to 'inline'
instead.

Backport from mainline
2020-05-23  Jonathan Wakely  <jwakely@redhat.com>

* 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
This page took 0.062211 seconds and 6 git commands to generate.