# HG changeset patch # User Rob Landley # Date 1187416965 18000 # Node ID 983341326428127ebdb581f4bbb94587beed9ffc # Parent b28f6437f95db138183ed6f1b5156b9e1e553306 Patch from Andrew Johnson to fix global compound literals. diff -r b28f6437f95d -r 983341326428 tcc.c --- a/tcc.c Sat Aug 18 00:13:48 2007 -0500 +++ b/tcc.c Sat Aug 18 01:02:45 2007 -0500 @@ -6482,7 +6482,7 @@ there and in function calls. */ /* arrays can also be used although they are not lvalues */ if ((vtop->type.t & VT_BTYPE) != VT_FUNC && - !(vtop->type.t & VT_ARRAY)) + !(vtop->type.t & VT_ARRAY) && !(vtop->type.t & VT_LLOCAL)) test_lvalue(); mk_pointer(&vtop->type); gaddrof();