Re: [PATCH] correct formatting of function pointers in -Warray-bounds (PR 101601)

2021-07-28 Thread Jeff Law via Gcc-patches
On 7/27/2021 2:45 PM, Martin Sebor via Gcc-patches wrote: When mentioning the type of the accessed object -Warray-bounds treats singleton objects as arrays of one element for simplicity. But because the code doesn't distinguish between function and object pointers, a warning for an out-of-boun

[PATCH] correct formatting of function pointers in -Warray-bounds (PR 101601)

2021-07-27 Thread Martin Sebor via Gcc-patches
When mentioning the type of the accessed object -Warray-bounds treats singleton objects as arrays of one element for simplicity. But because the code doesn't distinguish between function and object pointers, a warning for an out-of-bounds index into a singleton function pointer object attempts to