Revert "[qfcc] Fix another type aliasing bug"

This reverts commit d14f695c68.

Found the cause: revered to wrong case for template code
This commit is contained in:
Bill Currie 2022-01-08 18:48:54 +09:00
parent 134f5ca6a4
commit 62d58a2255

View file

@ -1945,8 +1945,7 @@ bitnot_expr:
if (extract_type (e) != ev_pointer)
return error (e, "invalid type for unary .");
e = new_unary_expr ('.', e);
const type_t *t = unalias_type (get_type (e->e.expr.e1));
e->e.expr.type = t->t.fldptr.type;
e->e.expr.type = get_type (e->e.expr.e1)->t.fldptr.type;
return e;
case '+':
if (!is_math (get_type (e)))