Skip to content

Commit

Permalink
Revert "Revert "[Modules] Don't check [temp.friend]p9 in ASTContext::…
Browse files Browse the repository at this point in the history
…isSameEntity""

This fixes the Clang modular CI, but breaks other CIs.

This reverts commit 2ae3990.
  • Loading branch information
mordante committed Feb 28, 2023
1 parent 2dd527b commit 33e18cb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions clang/lib/AST/ASTContext.cpp
Expand Up @@ -6707,10 +6707,6 @@ bool ASTContext::isSameEntity(const NamedDecl *X, const NamedDecl *Y) const {
PrimaryY->getTrailingRequiresClause()))
return false;

// Constrained friends are different in certain cases, see: [temp.friend]p9.
if (FriendsDifferByConstraints(FuncX, FuncY))
return false;

auto GetTypeAsWritten = [](const FunctionDecl *FD) {
// Map to the first declaration that we've already merged into this one.
// The TSI of redeclarations might not match (due to calling conventions
Expand Down

0 comments on commit 33e18cb

Please sign in to comment.