Files
carbon-lang/toolchain/check
Özgür a4b5ab9df9 Reject unqualified private access to base members (#6521)
### Description
Currently, unqualified access to private members of the base class
compiles without error. This is due to `LookupUnqualifiedName` calling
`LookupQualifiedName` internally with `access_info` parameter set to
`std::nullopt`. This causes `IsAccessProhibited` to return `false`
immediately.
This PR fixes this issue.

### Changes
- Added a check where if the `access_info` is null and the current scope
we are looking is an extended scope (parent), initializes the
`access_info` with `highest_allowed_access` set to `Protected`.

Fixes #6239
2025-12-18 19:12:07 +00:00
..
2025-04-11 21:47:43 +00:00
2025-07-11 22:29:10 +00:00
2025-12-11 21:31:31 +00:00
2025-04-14 14:28:15 +00:00
2025-11-18 19:48:58 +00:00
2025-09-25 21:56:48 +00:00