From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fergus Henderson To: "John David Anglin" Cc: gcc@gcc.gnu.org Subject: Re: GCC 3.0 Status Report Date: Sun, 22 Apr 2001 08:41:00 -0000 Message-id: <20010423014112.A4983@hg.cs.mu.oz.au> References: <200104182009.NAA09066@bosch.cygnus.com> <200104192006.QAA29881@hiauly1.hia.nrc.ca> X-SW-Source: 2001-04/msg01039.html On 19-Apr-2001, John David Anglin wrote: > Here is a fix for the undefined reference std::errno. The language > experts can debate whether it is the right thing to do. ... > * mangle.c (mangle_decl_string): Don't mangle variables with > extern "C" linkage. That's the right thing to do. The relevant text in the C++ standard is 7.5 [dcl.link] paragraph 2: | Two declarations for an object with C language linkage with the same | name (ignoring the namespace names that qualify it) that appear in | different namespace scopes refer to the same object. Personally I don't think this one was a particularly good decision (e.g. because it will cause trouble if a future extension of C adds namespaces...), but that's what the committee decided. -- Fergus Henderson | "I have always known that the pursuit | of excellence is a lethal habit" WWW: < http://www.cs.mu.oz.au/~fjh > | -- the last words of T. S. Garp.