[Bug c++/20812] contextual overload resolution failure for a member name found in two base classes

SWElef at post dot sk gcc-bugzilla@gcc.gnu.org
Fri Apr 8 07:33:00 GMT 2005


------- Additional Comments From SWElef at post dot sk  2005-04-08 07:33 -------
Well, if we speak about other compilers, MSVC++ Toolkit 2003 supports my view
on the first snippet and emits an ICE on the second. And the behaviour of
Comeau Online is pretty irrelevant as it fails deduction even for test<B1>(0).
>From my tests it seems that Comeau Online fails deduction whenever there is
a non-trivial expression using a template argument in the template function
signature and "typename void_holder<int B1::*,&T::foo>::type" is already too
complicated.


-- 


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



More information about the Gcc-bugs mailing list