[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 5 14:40:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The standard says:

When considering an associated namespace, the lookup is the same as the lookup
performed when the associated namespace is used as a qualifier (3.4.3.2) except
that:
- [...]
- [...]
- All names except those of (possibly overloaded) functions and function
templates are ignored.

So non-functions are ignored.



More information about the Gcc-bugs mailing list