Ö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-12-16 01:33:53 +00:00
2025-12-17 15:46:30 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-10-28 17:17:38 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-06-25 21:03:15 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-17 00:00:14 +00:00
2025-06-17 21:10:04 +00:00
2025-09-03 21:00:12 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-09-29 16:05:06 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-12-10 18:34:23 +00:00
2025-09-10 23:55:55 +00:00
2025-06-17 21:10:04 +00:00
2025-11-18 19:48:58 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-12-16 01:33:53 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-09-10 23:55:55 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-06-17 21:10:04 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-06-17 21:10:04 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-17 15:40:20 +00:00
2025-09-29 16:05:06 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-18 19:12:07 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-10-23 01:46:24 +00:00
2025-12-16 01:33:53 +00:00
2025-06-18 20:45:46 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-08-06 23:55:05 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-09-29 16:05:06 +00:00
2025-12-16 01:33:53 +00:00
2025-09-29 16:05:06 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-12-16 01:33:53 +00:00
2025-09-29 16:05:06 +00:00
2025-12-17 15:46:30 +00:00