On Mon, 18 Jun 2012, Dmitry Antipov wrote:
> On 06/18/2012 04:49 PM, Derek M Jones wrote:
>
> > Your patch will incorrectly translate:
> >
> > j= (v[i++] = E);
> >
> > to:
> >
> > j = (v[i] = E, i++);
>
> Why? I suppose 'j= (v[i++] = E)' shouldn't match at all
> because there is no structure dereference operator ('->')
> in this statement.
The value of j should be the value of E (or perhaps the value of v[i]?),
not the value of i++.
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)