[Bug target/109380] inline member function symbol not exported with explicit template instantiation declaration on MinGW

2023-04-03 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109380

LIU Hao  changed:

   What|Removed |Added

 CC||lh_mouse at 126 dot com

--- Comment #4 from LIU Hao  ---
Looks like GCC doesn't generate `-export:` after `.section .drectve`. The
functions are generated in `.linkonce` sections correctly; they are just not
exported.

[Bug target/109380] inline member function symbol not exported with explicit template instantiation declaration on MinGW

2023-04-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109380

--- Comment #3 from Andrew Pinski  ---
Note there are not many folks working on mingw support for GCC these days.
Also I don't work on that port, I work on other ports and try to triage bug
reports which is why I commented here.

[Bug target/109380] inline member function symbol not exported with explicit template instantiation declaration on MinGW

2023-04-02 Thread vittorio.romeo at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109380

--- Comment #2 from Vittorio Romeo  ---
Hmm, you might be correct. Seeing that the issue has not been looked at since
2017, are you aware of any workaround besides `-Wl,--export-all-symbols`? 

The issue is preventing me from applying explicit template instantiations in
the SFML codebase for commonly used template types.

[Bug target/109380] inline member function symbol not exported with explicit template instantiation declaration on MinGW

2023-04-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109380

Andrew Pinski  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=81855

--- Comment #1 from Andrew Pinski  ---
Actually I think this is a dup of bug 81855.