--- Comment #6 from jason at gcc dot gnu dot org 2009-01-15 23:12 ---
3.4.2 begins "When an unqualified name is used as the postfix-expression in a
function call" The call func(x) does not get argument-dependent
lookup because func is not an unqualified name, it's a template-id. Th
--- Comment #5 from dragan at plusplus dot co dot yu 2008-12-30 13:20
---
The standard says that the friend declaration should inject the name 'func'
into the enclosing namespace, but in a way that it can be found only by ADL.
Here is a test case without templates:
struct Foo
{
fr