|
| 1 | +2025-11-05 Nathaniel Shead <nathanieloshead@gmail.com> |
| 2 | + |
| 3 | + PR c++/121574 |
| 4 | + * cp-tree.h (instantiating_tu_local_entity): Declare. |
| 5 | + * module.cc (is_tu_local_entity): Extract from depset::hash. |
| 6 | + (is_tu_local_value): Likewise. |
| 7 | + (has_tu_local_tmpl_arg): Likewise. |
| 8 | + (depset::hash::is_tu_local_entity): Remove. |
| 9 | + (depset::hash::has_tu_local_tmpl_arg): Remove. |
| 10 | + (depset::hash::is_tu_local_value): Remove. |
| 11 | + (instantiating_tu_local_entity): New function. |
| 12 | + (depset::hash::add_binding_entity): No longer go through |
| 13 | + depset::hash to check is_tu_local_entity. |
| 14 | + * pt.cc (complain_about_tu_local_entity): Remove. |
| 15 | + (tsubst): Use instantiating_tu_local_entity. |
| 16 | + (tsubst_expr): Likewise. |
| 17 | + |
| 18 | +2025-11-05 Nathaniel Shead <nathanieloshead@gmail.com> |
| 19 | + |
| 20 | + PR c++/121574 |
| 21 | + * module.cc (depset::disc_bits): Replace 'DB_REFS_TU_LOCAL_BIT' |
| 22 | + and 'DB_EXPOSURE_BIT' with new four flags |
| 23 | + 'DB_{REF,EXPOSE}_{GLOBAL,PURVIEW}_BIT'. |
| 24 | + (depset::is_tu_local): Support checking either for only purview |
| 25 | + TU-local entities or any entity described TU-local by standard. |
| 26 | + (depset::refs_tu_local): Likewise. |
| 27 | + (depset::is_exposure): Likewise. |
| 28 | + (depset::hash::make_dependency): A constant initialized to a |
| 29 | + TU-local variable is always considered a purview exposure. |
| 30 | + (is_exposure_of_member_type): Adjust sanity checks to handle if |
| 31 | + we ever relax requirements for TU-local types. |
| 32 | + (depset::hash::add_dependency): Differentiate referencing |
| 33 | + purview or GMF TU-local entities. |
| 34 | + (depset::hash::diagnose_bad_internal_ref): New function. |
| 35 | + (depset::hash::diagnose_template_names_tu_local): New function. |
| 36 | + (depset::hash::finalize_dependencies): Handle new warnings that |
| 37 | + might be needed for GMF TU-local entities. |
| 38 | + |
1 | 39 | 2025-11-04 Nathaniel Shead <nathanieloshead@gmail.com> |
2 | 40 |
|
3 | 41 | PR c++/122253 |
|
0 commit comments