Check support for simple friend declarations (#7890)

As a drive-by fix, this also resolves an issue where out-of-line method
definitions didn't have access to private class members.
This commit is contained in:
Geoff Romer authored and GitHub committed 2026-10-05 22:26:12 +00:00
1 parent 2ec4bab59b
commit 5fed32a9aa
8 files changed
+343 -5

No files matched your search

+1
View File
@@ -321,6 +321,7 @@ auto DeclNameStack::ApplyNameQualifier(const NameComponent& name) -> void {
name_context.parent_scope_id = PushNameQualifierScope(
*context_, name_context.loc_id, scope_id, generic_id,
context_->name_scopes().Get(scope_id).has_error());
UpdateAccessContext();
} else {
name_context.state = NameContext::State::Error;
}