From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Wood To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/2166 Date: Wed, 18 Apr 2001 08:06:00 -0000 Message-id: <20010418150600.25630.qmail@sourceware.cygnus.com> X-SW-Source: 2001-04/msg00326.html List-Id: The following reply was made to PR c++/2166; it has been noted by GNATS. From: Carlo Wood To: Mark Mitchell Cc: mmitchel@gcc.gnu.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Subject: Re: c++/2166 Date: Wed, 18 Apr 2001 16:56:53 +0200 On Tue, Apr 17, 2001 at 08:54:54PM -0700, Mark Mitchell wrote: > I don't think so. > > I think that `test' has external linkage. 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. Ah... Ok. I am sorry, I really thought you meant that it was the variable 'test' that had to be unique itself. It just appeared to me as a bug since the compiler constantly used long names including the input file name and random characters and then suddenly I ran into one that didn't contain any random characters at all etc. But I guess you're right. Thanks for clarifying, -- Carlo Wood