[PATCH] D150730: [Clang][Sema] Substitute constraints only for declarations with different lexical contexts

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 17 09:19:24 PDT 2023


erichkeane accepted this revision.
erichkeane added a comment.
This revision is now accepted and ready to land.

No release note needed, as this is a regression, but thanks for putting this together!



================
Comment at: clang/lib/Sema/SemaConcept.cpp:783
     return true;
-  if (Old && New && Old != New) {
+  if (Old && New && Old != New &&
+      Old->getLexicalDeclContext() != New->getLexicalDeclContext()) {
----------------
Please put the standards quote that supports this here, it'll be really useful in the future.(temp.constr.decl p4)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150730/new/

https://reviews.llvm.org/D150730



More information about the cfe-commits mailing list