rjmccall added a comment. Well, Sema should always be diagnosing conflicts. If you don't have a specific reason to allow replacement, I would prefer just fixing the documentation to state this as a precondition. Repository: rC Clang https://reviews.llvm.org/D47627