On 2021-08-31, 09:08 -0600, Martin Sebor <mse...@gmail.com> wrote:

> To refine Jonathan's answer: In cases where the index is constant
> like this one the warning could be issued even with no optimization.
> That it isn't is the result of the choice to depend on optimizations
> unconditionally.  It's worth revisiting this choice in the future.
> If you would like to see such a change for -Warray-bounds (or any
> other warning) please open requests in Bugzilla.

Sure! Currently user account registration is restricted at Bugzilla, I
will request it ASAP.

-- 
Utkarsh Singh
http://utkarshsingh.xyz

Reply via email to