Description
namespace N {
struct A {};
bool operator==(A, int);
bool operator!=(A, int);
}
bool a = 0 == N::A();
This should fail to compile, because the existence of operator!=
should suppress the reversed operator==(int, A)
. However, on Clang it does not.
Moving bool a
within the namespace does make it correctly fail to compile, which suggests that name lookup for the operator!= is not being done in the correct scope.
Metadata
Metadata
Assignees
Type
Projects
Status
Done
Status
Done