This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36641] erroneous ambiguous error for subclasses overloaded templated interfaces
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2008 19:07:03 -0000
- Subject: [Bug c++/36641] erroneous ambiguous error for subclasses overloaded templated interfaces
- References: <bug-36641-16386@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-26 19:07 -------
This is how C++ works IIRC. If two functions with the same name are inherited
from two different classes, they are considered ambiguous.
If you use a non template version of Handler you will also see it is the same
issue.
Anyways adding:
using Handler<Foo>::handle;
using Handler<Bar>::handle;
To Baz, cause the ambiguous to go away.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36641