[PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 2 16:37:59 PDT 2018


rjmccall added a comment.

No, the analysis is intentionally syntactic; it should apply even on dependently-typed arguments (but not get re-checked on instantiation).  But I agree that the warning ought to be disabled in unevaluated contexts.


Repository:
  rC Clang

https://reviews.llvm.org/D44883





More information about the cfe-commits mailing list