------- Comment #3 from bkoz at gcc dot gnu dot org 2009-01-27 04:23 -------
This seems like a template linkage bug specific to the powerpc-darwin8.5.0 target, probably related to simulated/incomplete support of comdat and weak linkage on that platform via coalesced symbols. It seems unlikely to be fixed, although I suppose miracles happen every day. I do not believe this is specific to libstdc++, IMHO. That it does not happen on other architectures of darwin (ie x86) or on non-darwin hosts make me leery of adding this workaround to the docs. What is the link to the Apple bug report? I see this on x86/linux for your code sample: %eu-readelf -s 2weak.o | grep Rep 109: 0000000000000000 32 OBJECT WEAK DEFAULT 120 _ZNSbIN9__gnu_cxx9characterIti11__mbstate_tEESt11char_traitsIS2_ESaIS2_EE4_Rep20_S_empty_rep_storageE both with and without -fno-weak. This seems to be another instance of gcc/28017: I would like to close this as a duplicate of that bug report, if the bug reporter is agreeable. -- bkoz at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |28017 Keywords| |documentation http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25956