Re: [PATCH] C: fix reported range of invalid unary dereference.

2015-12-22 Thread Jeff Law
On 12/22/2015 10:26 AM, David Malcolm wrote: Currently, trunk emits this for a bad unary * in C: bad-dereference.c:10:10: error: invalid type argument of unary ‘*’ (have ‘int’) return *some_f.x; ^ The following patch fixes the reported location to highlight the expression that wa

Re: [PATCH] C: fix reported range of invalid unary dereference.

2015-12-22 Thread Trevor Saunders
On Tue, Dec 22, 2015 at 12:26:29PM -0500, David Malcolm wrote: > Currently, trunk emits this for a bad unary * in C: > > bad-dereference.c:10:10: error: invalid type argument of unary ‘*’ (have > ‘int’) >return *some_f.x; > ^ > > The following patch fixes the reported location to h

[PATCH] C: fix reported range of invalid unary dereference.

2015-12-22 Thread David Malcolm
Currently, trunk emits this for a bad unary * in C: bad-dereference.c:10:10: error: invalid type argument of unary ‘*’ (have ‘int’) return *some_f.x; ^ The following patch fixes the reported location to highlight the expression that was attempted to be dereferenced: bad-dereference.