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

            Bug ID: 109290
           Summary: warning: array subscript -50 is outside array bounds
                    of ‘struct kobject[36028797018963967]’
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com
  Target Milestone: ---

Happens while compiling recent linux kernel. Several instances of ... in the
same place:

In function ‘btrfs_show_u64’,
    inlined from ‘btrfs_space_info_show_flags’ at fs/btrfs/sysfs.c:867:1:
fs/btrfs/sysfs.c:637:13: error: array subscript -50 is outside array bounds of
‘struct kobject[36028797018963967]’ [-Werror=array-bounds=]
  637 |         val = *value_ptr;
      |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
    inlined from ‘btrfs_space_info_show_total_bytes’ at fs/btrfs/sysfs.c:868:1:
fs/btrfs/sysfs.c:637:13: error: array subscript -64 is outside array bounds of
‘struct kobject[36028797018963967]’ [-Werror=array-bounds=]
  637 |         val = *value_ptr;
      |         ~~~~^~~~~~~~~~~~
...

Reply via email to