[Commit] nickle gram.y,1.122,1.123
Keith Packard
commit at keithp.com
Tue Jun 17 11:10:18 PDT 2003
Committed by: keithp
Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv6015
Modified Files:
gram.y
Log Message:
Set type for anonymous poly arrays
Index: gram.y
===================================================================
RCS file: /local/src/CVS/nickle/gram.y,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- gram.y 17 Jun 2003 16:49:40 -0000 1.122
+++ gram.y 17 Jun 2003 17:10:15 -0000 1.123
@@ -1309,12 +1309,14 @@
$7->base.type = NewTypeArray (typePoly, $3);
ParseCanonType ($7->base.type, False);
$$ = NewExprTree (NEW, $7, 0);
+ $$->base.type = $7->base.type;
}
| OP OS dims CS CP namespace_start opt_arrayinit namespace_end
{
$7->base.type = NewTypeArray (typePoly, $3);
ParseCanonType ($7->base.type, False);
$$ = NewExprTree (NEW, $7, 0);
+ $$->base.type = $7->base.type;
}
| type DOT NAME %prec UNIONCAST
{
More information about the Commit
mailing list