This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13590] unexpected overload resolution
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2004 23:00:22 -0000
- Subject: [Bug c++/13590] unexpected overload resolution
- References: <20040106205426.13590.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-01-06 23:00 -------
That's not a good example. The using directive for A::f and B::f create
an ambiguity, but this only needs to be detected when you try to call
one of the functions, i.e. during overload resolution, not when the
using directive is parsed. However, you call f(int), and there is no
ambiguity in this case.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13590