public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/92359] function static variable instantiated at -O1 despite extern template [not found] <bug-92359-4@http.gcc.gnu.org/bugzilla/> @ 2021-08-13 8:20 ` pinskia at gcc dot gnu.org 2021-08-13 10:15 ` sbence92 at gmail dot com 1 sibling, 0 replies; 2+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-13 8:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92359 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >but not with msvc. Are you sure? >The result is that function static variables get instantiated more than 1 times. That should not matter in even in shared libraries unless you are doing some symbol hidding in the shared library really. ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/92359] function static variable instantiated at -O1 despite extern template [not found] <bug-92359-4@http.gcc.gnu.org/bugzilla/> 2021-08-13 8:20 ` [Bug c++/92359] function static variable instantiated at -O1 despite extern template pinskia at gcc dot gnu.org @ 2021-08-13 10:15 ` sbence92 at gmail dot com 1 sibling, 0 replies; 2+ messages in thread From: sbence92 at gmail dot com @ 2021-08-13 10:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92359 --- Comment #4 from Bence Szabó <sbence92 at gmail dot com> --- >That should not matter in even in shared libraries unless you are doing some symbol hidding in the shared library really. Hmm. I just run the attached example on linux (after some tuning) with -fPIC, and it works. Strange. Now I don't see why this shouldn't work under windows. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-13 10:15 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-92359-4@http.gcc.gnu.org/bugzilla/> 2021-08-13 8:20 ` [Bug c++/92359] function static variable instantiated at -O1 despite extern template pinskia at gcc dot gnu.org 2021-08-13 10:15 ` sbence92 at gmail dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).