[Bug c++/26311] [4.1/4.2 Regression] ambiguous overload errors

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 16 00:49:00 GMT 2006



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-02-16 00:49 -------
(In reply to comment #2)
> how do you explain that the testcase compiles just fine if you remove the
> namespace?

Because Agrument Dependent Lookup (koenig lookup) happens even though there is
an overloaded set.  This is also referenced in that PR.

If you move qHash of khtml::Font::ScalKey into the khtml, it will work also
because ADL is happening.


-- 


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



More information about the Gcc-bugs mailing list