[Bug c++/17829] [3.4/4.0 Regression] wrong error: call of overloaded function is ambiguous

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 5 16:05:00 GMT 2004


------- Additional Comments From nathan at gcc dot gnu dot org  2004-10-05 16:05 -------
2004-10-05  Nathan Sidwell  <nathan@codesourcery.com>

        PR c++/17829
        * parser.c (cp_parser_postfix_expression): Inhibit Koenig when
        unqualified lookup finds a member function.

we were doing koenig lookup when we shouldn't have been.  Which is why
changing the arg type from ::Qstring to int made it work -- that
changed the set of associated namespaces from (::) to ().

-- 


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



More information about the Gcc-bugs mailing list