This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17829] [3.4/4.0 Regression] wrong error: call of overloaded function is ambiguous
- From: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2004 16:05:20 -0000
- Subject: [Bug c++/17829] [3.4/4.0 Regression] wrong error: call of overloaded function is ambiguous
- References: <20041004120459.17829.micis@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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