• Anthony Martin's avatar
    cc: fix an out of bounds array access · 436f297d
    Anthony Martin authored
    Alternatively, we could expand the ewidth array
    in [568]c/txt.c to have NALLTYPES elements and
    give all types above NTYPE a width of -1.
    
    I don't think it's worth it since TDOT and TOLD
    are the only two type values above NTYPE that
    are passed to typ:
    
    $ /tmp/cctypes
    cc/dcl.c:683: 			t->down = typ(TOLD, T);
    cc/dcl.c:919: 		return typ(TDOT, T);
    $
    
    Fixes #3063.
    
    R=golang-dev, rsc
    CC=golang-dev
    https://golang.org/cl/5694047
    436f297d
Name
Last commit
Last update
..
Makefile Loading commit data...
acid.c Loading commit data...
bits.c Loading commit data...
cc.h Loading commit data...
cc.y Loading commit data...
com.c Loading commit data...
com64.c Loading commit data...
dcl.c Loading commit data...
doc.go Loading commit data...
dpchk.c Loading commit data...
funct.c Loading commit data...
godefs.c Loading commit data...
lex.c Loading commit data...
lexbody Loading commit data...
mac.c Loading commit data...
macbody Loading commit data...
omachcap.c Loading commit data...
pgen.c Loading commit data...
pswt.c Loading commit data...
scon.c Loading commit data...
sub.c Loading commit data...
y.tab.c Loading commit data...
y.tab.h Loading commit data...