Stefan Lampe <stefanla...@hotmail.com> 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. Your test case doesn't compile, so it's hard to be sure what is going on. The linker should normally merge template instantiations which have the same name, but making the function static may be causing it to be static in the file, and thus not merged. Ian