This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Static linkage and anonymous namespace


> I can't think of any examples offhand that the compiler currently supports,
> but passing the address of a variable in the unnamed namespace to an
> exported template would break.  I'd like not to have to change this back
> when we implement export.

I thought you'd bring up export, and I can't really defend myself here
because I have no clue how to implement exported templates.

So, it seems that closes the matter. Which brings me back to the
original question:

It is currently easy to produce duplicate symbols if you know the
algorithm for the anonymous namespace name. Is this a problem?
If so, should we merge the current time into the name?

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]