Re: [PATCH] libstdc++: Declare const global variables inline

2022-11-03 Thread Jonathan Wakely via Gcc-patches
On Wed, 2 Nov 2022 at 13:42, Patrick Palka via Libstdc++ wrote: > > IIUC such variables should be declared inline to avoid potential ODR > violations since they're otherwise considered to be distinct (internal > linkage) entities across TUs. > > The changes inside the regex_constants and execution

[PATCH] libstdc++: Declare const global variables inline

2022-11-02 Thread Patrick Palka via Gcc-patches
IIUC such variables should be declared inline to avoid potential ODR violations since they're otherwise considered to be distinct (internal linkage) entities across TUs. The changes inside the regex_constants and execution namespace seem to be unimplemented parts of P0607R0; the rest of the change