[all-commits] [llvm/llvm-project] 93ebe6: [C++20] [Modules] Fix ADL for friend in modules
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Tue Dec 2 18:31:26 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 93ebe63f2e7a252038bde01a4399c14e0123cdac
https://github.com/llvm/llvm-project/commit/93ebe63f2e7a252038bde01a4399c14e0123cdac
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2025-12-03 (Wed, 03 Dec 2025)
Changed paths:
M clang/lib/Sema/SemaLookup.cpp
A clang/test/Modules/pr170235.cppm
Log Message:
-----------
[C++20] [Modules] Fix ADL for friend in modules
Close https://github.com/llvm/llvm-project/issues/170235
The cause of the issue is it didn't check friendness for decls
in ordinary namespace if it isn't visible.
It is fine for code before modules, since everything is visible.
But it is not true after modules came in. This patch adjusts this.
Note that this doesn't change the control flow for non-modules codes,
as the decls in ordinary namespace is always visible then it won't never
fall in following friendness check.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list