sepavloff added inline comments.
================ Comment at: lib/Sema/SemaDeclCXX.cpp:646 + // in this case, redefinition will be diagnosed later. + (New->isInlineSpecified() || !New->isOutOfLine() || + !New->getLexicalDeclContext()->isRecord())) { ---------------- arphaman wrote: > This is somewhat confusing to me: are you using the `!New->isOutOfLine() || > !New->getLexicalDeclContext()->isRecord()` check to ensure that this new > declaration is not a `friend`? Indeed, this check is obscure. Replaced by call to `getFriendObjectKind`. https://reviews.llvm.org/D26065 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits