commit 3fe369d20c2ac3e00272ce3e9fded43f3d9a5afc
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Jan 8 12:18:11 2016 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Fri Jan 8 12:18:11 2016 +0100

    Initialize type flags
    
    When a new type is created all the flags of the new type
    must be initialized, in other case we can have wrong tests.

diff --git a/cc1/types.c b/cc1/types.c
index dfb0b1b..65be354 100644
--- a/cc1/types.c
+++ b/cc1/types.c
@@ -446,7 +446,10 @@ mktype(Type *tp, int op, TINT nelem, Type *pars[])
 
        type.type = tp;
        type.op = op;
+       type.arith = 0;
+       type.integer = 0;
        type.printed = 0;
+       type.aggreg = 0;
        type.letter = c;
        type.p.pars = pars;
        type.n.elem = nelem;

Reply via email to