https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107907
Bug ID: 107907
Summary: weak integer constant not linked correctly
Product: gcc
Version: 9.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107932
Bug ID: 107932
Summary: weak constant char array not used correctly
Product: gcc
Version: 9.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107932
--- Comment #1 from Berni ---
potentially related to bug 107907
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107932
--- Comment #2 from Berni ---
added test case:
g++ -o test.exe -Os main.cpp weak.cpp
./test.exe
'S'
'S'
'S'
here the result is as expected!