-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
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
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"