Re: template instantiation and anonymous namespaces

2009-07-14 Thread Ian Lance Taylor
Stefan Lampe writes: > Here's some code that produced a surprising result with GCC 4.3.3 on > linux 64. I'd have expected all addresses output to be the same. This message should have gone to gcc-h...@gcc.gnu.org rather than g...@gcc.gnu.org. Please take any followups to gcc-help. Thanks. You

template instantiation and anonymous namespaces

2009-07-14 Thread Stefan Lampe
Hi, Here's some code that produced a surprising result with GCC 4.3.3 on linux 64. I'd have expected all addresses output to be the same. I guess the reason for this is that when merging the templates instantiated in one.cpp and two.cpp, the linker doesn't perform a complete merge, but only m