Re: [PATCH] PR libstdc++/85818 ensure path::preferred_separator is defined

2018-05-21 Thread Jonathan Wakely
On 17/05/18 16:36 +0100, Jonathan Wakely wrote: Because path.cc is compiled with -std=gnu++17 the static constexpr data member is implicitly 'inline' and so no definition gets emitted unless it gets used in that translation unit. Other translation units built as C++11 or C++14 still require a

[PATCH] PR libstdc++/85818 ensure path::preferred_separator is defined

2018-05-17 Thread Jonathan Wakely
Because path.cc is compiled with -std=gnu++17 the static constexpr data member is implicitly 'inline' and so no definition gets emitted unless it gets used in that translation unit. Other translation units built as C++11 or C++14 still require a namespace-scope definition of the variable, so mark