This patch fixes incorrect behavior described in PR25910.
Specifically, when there are two definitions with the same mangled name:
extern "C" {
int _ZN2nm3abcE = 1;
}
namespace nm {
float abc = 2;
}
clang should issue an error, not just emit an arbitrary one of them, as it does now.
It is essentially the same stuff as in http://reviews.llvm.org/D11297, just for variables, not functions.
Yours,
Andrey
Software Engineer
Intel Compiler Team
Intel
It would be good to document what IsForDefinition does.