[Concepts] Fix friend-checking to include NTTPs
authorErich Keane <erich.keane@intel.com>
Wed, 16 Nov 2022 15:00:55 +0000 (07:00 -0800)
committerErich Keane <erich.keane@intel.com>
Wed, 16 Nov 2022 15:33:15 +0000 (07:33 -0800)
commit6c38ffc7b6f46fda94e29ed6cf34b814aeeaab45
tree8864cedf0d6239bb340d6adea7d5eeef76f493ee
parented4943d5606a60f602c70c941262d146d2038c7b
[Concepts] Fix friend-checking to include NTTPs

More work for temp.friend p9, this fixes a previous bug where we didn't
properly consider a friend to depend on the enclosing template if it
only did so via an NTTP.
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaTemplate/concepts-friends.cpp