------- Comment #7 from andrew dot stubbs at st dot com 2007-05-31 09:49 ------- See here: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#197
It would appear that only koenig lookup is done for functions defined after the template declaration. As the Intel statement says, koenig lookup does not apply to fundamental types. Koenig lookup is described in clause 3.4.2 "Argument dependent name lookup". It is clause 14.6.4 "Dependent name resolution" that limits the lookup to Koenig only. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23885