mirror of https://github.com/golang/go.git
c compiler bug tickled by
void f(struct { int x[1]; } p) { }
the "int" was getting attached to f.
R=ken
OCL=35145
CL=35151
This commit is contained in:
parent
5b79202ca2
commit
5124e66fca
|
|
@ -44,6 +44,8 @@
|
|||
{
|
||||
Type* t1;
|
||||
Type* t2;
|
||||
Type* t3;
|
||||
uchar c;
|
||||
} tyty;
|
||||
struct
|
||||
{
|
||||
|
|
@ -925,16 +927,22 @@ sbody:
|
|||
{
|
||||
$<tyty>$.t1 = strf;
|
||||
$<tyty>$.t2 = strl;
|
||||
$<tyty>$.t3 = lasttype;
|
||||
$<tyty>$.c = lastclass;
|
||||
strf = T;
|
||||
strl = T;
|
||||
lastbit = 0;
|
||||
firstbit = 1;
|
||||
lastclass = CXXX;
|
||||
lasttype = T;
|
||||
}
|
||||
edecl '}'
|
||||
{
|
||||
$$ = strf;
|
||||
strf = $<tyty>2.t1;
|
||||
strl = $<tyty>2.t2;
|
||||
lasttype = $<tyty>2.t3;
|
||||
lastclass = $<tyty>2.c;
|
||||
}
|
||||
|
||||
zctlist:
|
||||
|
|
|
|||
Loading…
Reference in New Issue