Closed
Description
Bugzilla Link | 22039 |
Version | trunk |
OS | All |
CC | @DougGregor,@rnburn |
Extended Description
clang accepts this code:
#include <iostream>
struct A {
void operator()(int) {
std::cout << "A::f\n";
}
};
struct B {
void operator()() {
std::cout << "B::f\n";
}
};
struct C
: A, B
{
};
int main() {
C c;
c();
return 0;
}
which should give an ambiguous name lookup error. Both gcc and intel's compiler correctly give the operator() is ambiguous error