+1  A: 

It should be a problem related to c++'s two-phase name lookup:

http://gcc.gnu.org/onlinedocs/gcc-4.4.3/gcc/Name-lookup.html#Name-lookup

lz_prgmr
That's it! This and http://www.parashift.com/c++-faq-lite/templates.html#faq-35.19 (another link found in the mentioned duplicate). Thanks.
Juliano