------- 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<int>(x) does not get argument-dependent lookup because func<int> is not an unqualified name, it's a template-id. The testcase should be rejected with or without the declaration of weird.
-- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34870