[Dragan Noveski]
   This looks
interesting .. what version of g++ are you using?  
 4.1.1-21 from debian 
 
Hmm ... the same version works without a glitch on this 32-bit box
(even at -O6).
    Does the
compiler stop producing duplicates if you lower the -O level?
   
 can you please give me more exactly information on what to do with the '-0
 level'? 
 
Not the zero-level but the Oh-level, as in -O3 -> -O2 -> -O1 -> -O0
Tim