http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55460
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-25
20:46:06 UTC ---
Andrew is right, the standard says:
In an expression of the form:
postfix-expression ( expression-listopt)
where the postfix-expression is an unqualified-id, the unqualified-id denotes a
dependent name if [...]
Since my::filter is not an unqualified-id it is not a dependent name, so the
usual lookup rules apply and only names declared before the template definition
can be found.