https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109290

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 54761
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54761&action=edit
Minimized testcase

-Warray-bounds -fno-delete-null-pointer-checks -O2

In function ‘btrfs_show_u64’,
    inlined from ‘btrfs_space_info_show_flags’ at test.c:40:9:
test.c:31:13: warning: array subscript -1 is outside array bounds of ‘struct
kobject[1152921504606846975]’ [-Warray-bounds=]
   31 |         val = *value_ptr;
      |         ~~~~^~~~~~~~~~~~

Reply via email to