https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65299
--- Comment #4 from Im ieee ieee at bk dot ru ---
(In reply to Jonathan Wakely from comment #3)
My initial reaction is that GCC and ICC/EDG are correct. Name lookup is
performed for operator++ and if a name is found in two different base
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ieee at bk dot ru
Created attachment 34936
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34936action=edit
preprocessed file
This program does not compile.
class A
{
public:
A operator++(){return
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65299
--- Comment #2 from Im ieee ieee at bk dot ru ---
I have a mistake, ICC also rejects the code:
C::operator++ (ambiguous by inheritance)
operand types are: C ++
c++;
^