Hi,

It’s a copy paste bug here right?
https://code.google.com/p/ken-cc/source/browse/src/cmd/cc/cc.y#476


|       LSWITCH '(' cexpr ')' stmnt

        {

                $$ = new(OCONST, Z, Z);

                $$->vconst = 0;

                $$->type = types[TINT];

                $3 = new(OSUB, $$, $3);



                $$ = new(OCONST, Z, Z);

                $$->vconst = 0;

                $$->type = types[TINT];

                $3 = new(OSUB, $$, $3);



                $$ = new(OSWITCH, $3, $5);

        }


Reply via email to