public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21405] New: Template inlines have global visibility
@ 2005-05-05 21:49 mike at navi dot cx
  2005-05-05 22:27 ` [Bug c++/21405] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 21+ messages in thread
From: mike at navi dot cx @ 2005-05-05 21:49 UTC (permalink / raw)
  To: gcc-bugs

See http://gcc.gnu.org/ml/libstdc++/2005-04/msg00173.html

If you have code like:

std::string b = "bee";
std::string c = "see";

std::string a = b + c;

Then the string + operator overload will appear in the final ELF image with
GLOBAL WEAK visibility, meaning it can be bound to the wrong version of the
symbol at runtime (ie symbol versioning is ignored).

This is serious as it means you can't mix libraries that use different C++ ABIs
into the same image even if they only interact via C ABIs, something that the
GCC docs explicitly say will work!

-- 
           Summary: Template inlines have global visibility
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mike at navi dot cx
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21405


^ permalink raw reply	[flat|nested] 21+ messages in thread
[parent not found: <bug-21405-10578@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-03-22 19:11 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-05 21:49 [Bug c++/21405] New: Template inlines have global visibility mike at navi dot cx
2005-05-05 22:27 ` [Bug c++/21405] " pinskia at gcc dot gnu dot org
2005-05-05 22:40 ` pinskia at gcc dot gnu dot org
2005-05-05 22:40 ` mike at navi dot cx
2005-05-06  0:17 ` mike at navi dot cx
2005-05-08 12:18 ` chris at bubblescope dot net
2005-05-08 12:38 ` mike at navi dot cx
2005-05-25 23:24 ` [Bug libstdc++/21405] " bkoz at gcc dot gnu dot org
2005-05-31 13:37 ` mike at navi dot cx
2005-05-31 15:29 ` giovannibajo at libero dot it
2005-06-01 11:56 ` mike at navi dot cx
2005-06-03 22:02 ` adam at gimp dot org
2005-08-02 14:28 ` matze at braunis dot de
     [not found] <bug-21405-10578@http.gcc.gnu.org/bugzilla/>
2005-12-30 18:20 ` pinskia at gcc dot gnu dot org
2006-03-20 17:07 ` cristipp at excite dot com
2006-03-20 17:30 ` hjl at lucon dot org
2006-03-20 18:32 ` cristipp at excite dot com
2006-03-20 19:34 ` pluto at agmk dot net
2006-03-20 19:35 ` pluto at agmk dot net
2006-03-22  4:51 ` bkoz at gcc dot gnu dot org
2006-03-22 19:11 ` cristipp at excite 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).