Getting 3.3 out the door
Mark Mitchell
mark@codesourcery.com
Thu Apr 10 22:46:00 GMT 2003
> > This one can't be fixed in the 3.3 time frame, I don't think.
>
> Too bad. Do I get from your explanation in the PR, that the EDG frontend
> basically computed a hash from its present compiler state to get a name
> for anonymous namespaces? Also, why do these functions get external
> linkage at all?
Yes, you can think of it as a hash of its present state.
These functions get external linkage because the C++ standard says they
do. On the other hand, I've never been able to figure out whether a
conforming program could actually *tell*. Adding "export" into the mix
makes it more complicated; now an export template defined in that file
but instantiated somewhere else can see the members of the anonymous
namespace.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
More information about the Gcc
mailing list