Re: [PATCH] fix ice in attribute copy (PR 89685)

2019-03-29 Thread Jeff Law
On 3/14/19 7:47 PM, Martin Sebor wrote: > To copy type attributes from struct A, the copy attribute (new > in GCC 9) accepts a pointer argument such as (struct A*)0, but > it isn't prepared for anything much more complicated than that. > So for example when it's passed something like (struct A*)(0,

Re: [PATCH] fix ice in attribute copy (PR 89685)

2019-03-19 Thread Martin Sebor
On 3/19/19 12:42 PM, Jeff Law wrote: On 3/14/19 7:47 PM, Martin Sebor wrote: To copy type attributes from struct A, the copy attribute (new in GCC 9) accepts a pointer argument such as (struct A*)0, but it isn't prepared for anything much more complicated than that. So for example when it's pass

Re: [PATCH] fix ice in attribute copy (PR 89685)

2019-03-19 Thread Jeff Law
On 3/14/19 7:47 PM, Martin Sebor wrote: > To copy type attributes from struct A, the copy attribute (new > in GCC 9) accepts a pointer argument such as (struct A*)0, but > it isn't prepared for anything much more complicated than that. > So for example when it's passed something like (struct A*)(0,

[PATCH] fix ice in attribute copy (PR 89685)

2019-03-14 Thread Martin Sebor
To copy type attributes from struct A, the copy attribute (new in GCC 9) accepts a pointer argument such as (struct A*)0, but it isn't prepared for anything much more complicated than that. So for example when it's passed something like (struct A*)(0, 1) as the test case in PR 89685 does (a P1 reg