Re: [PATCH] correct the representation of ADDR_EXPR involving pointer to array [PR 90694]

2019-06-03 Thread Richard Biener
On Fri, May 31, 2019 at 10:50 PM Jeff Law wrote: > > On 5/31/19 1:56 PM, Martin Sebor wrote: > > Given a poiner to array p, tree dumps for expressions like &(*p)[2] > > actually show &*p[2]. That's not right -- the parentheses are > > important to differentiate indexing into the array the pointer

Re: [PATCH] correct the representation of ADDR_EXPR involving pointer to array [PR 90694]

2019-05-31 Thread Jeff Law
On 5/31/19 1:56 PM, Martin Sebor wrote: > Given a poiner to array p, tree dumps for expressions like &(*p)[2] > actually show &*p[2].  That's not right -- the parentheses are > important to differentiate indexing into the array the pointer > points to from indexing into the pointer. > > The attach

[PATCH] correct the representation of ADDR_EXPR involving pointer to array [PR 90694]

2019-05-31 Thread Martin Sebor
Given a poiner to array p, tree dumps for expressions like &(*p)[2] actually show &*p[2]. That's not right -- the parentheses are important to differentiate indexing into the array the pointer points to from indexing into the pointer. The attached patch adjusts the tree pretty printer to add the