From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel Dos Reis To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/2166 Date: Tue, 17 Apr 2001 23:56:00 -0000 Message-id: <20010418065600.4214.qmail@sourceware.cygnus.com> X-SW-Source: 2001-04/msg00317.html List-Id: The following reply was made to PR c++/2166; it has been noted by GNATS. From: Gabriel Dos Reis To: Mark Mitchell Cc: nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org, carlo@alinoe.com Subject: Re: c++/2166 Date: 18 Apr 2001 08:53:42 +0200 Mark Mitchell writes: | The following reply was made to PR c++/2166; it has been noted by GNATS. | | From: Mark Mitchell | To: carlo@alinoe.com | Cc: mmitchel@gcc.gnu.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org | Subject: Re: c++/2166 | Date: Tue, 17 Apr 2001 20:54:54 -0700 | | >>>>> "Carlo" == Carlo Wood writes: | | Carlo> You misread my report. | | I don't think so. | | I think that `test' has external linkage. Yes, it has. | ... Therefore, using it in this | mangled name is safe. You could only get a conflict if you had two | tests in two different translation units, both with external linkage. | And that would create a link error anyhow. The Standard requires that a member of an anonymous namespace be given a linker-visible unique name in a given translation unit so that two different translation units don't mess up. -- Gaby