Commit 508717f
committed
clang][Parser] Allow private type aliases in out-of-line member function return types
When parsing qualified type names (e.g., `io_context::impl_type`) at file scope in
clang-repl, suppress access checks during type annotation. This allows private member
type aliases to be used in return types of out-of-line member function definitions,
matching the C++ standard's scoping rules for such declarations.
Fixes: Parsing errors in clang-repl when including headers with out-of-line member
functions that return private nested types (e.g., ASIO's io_context::impl_type).1 parent d9cf0db commit 508717f
File tree
2 files changed
+42
-0
lines changed- clang
- lib/Parse
- test/Interpreter
2 files changed
+42
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2020 | 2020 | | |
2021 | 2021 | | |
2022 | 2022 | | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
2023 | 2034 | | |
2024 | 2035 | | |
2025 | 2036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments