eval compiler: read through type modifiers in member access path

This commit is contained in:
Ryan Fleury
2024-01-20 10:14:48 -08:00
parent d079c679f8
commit 6979d03f09
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -889,6 +889,7 @@ eval_irtree_and_type_from_expr(Arena *arena, TG_Graph *graph, RADDBG_Parsed *rdb
TG_Kind check_type_kind = l_restype_kind;
if (l_restype_kind == TG_Kind_Ptr || l_restype_kind == TG_Kind_LRef || l_restype_kind == TG_Kind_RRef){
check_type_key = tg_direct_from_graph_raddbg_key(graph, rdbg, l_restype);
check_type_key = eval_type_unwrap(graph, rdbg, check_type_key);
check_type_kind = tg_kind_from_key(check_type_key);
}
+2
View File
@@ -355,6 +355,8 @@ type_coverage_eval_tests(void){
Has_A_Post_Forward_Reference r2 = {0};
Basics &basics_ref = basics;
const Basics *basics_const_ptr = &basics;
const Basics &basics_const_ref = basics;
union
{