[Bug c++/17775] [3.3/3.4/4.0 Regression] -frepo with function template in anonymous namespace fails to compile

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 28 06:24:00 GMT 2004


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-10-28 06:24 -------
There is really no easy way to fix this problem.  If we were to have -frepo set
the random seed to a known value, we'd then get link errors when linking
multiple translation units containing anonymous namespaces.  

We've discussed giving members of anonymous namespaces internal linkage (from
the ELF point of view) even though the C++ standard gives them external linkage.
 That's probably the right fix, but it will not happen soon.

Postponed until GCC 4.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.3                       |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17775



More information about the Gcc-bugs mailing list