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

            Bug ID: 94188
           Summary: [10 Regression] error: request for member ‘node’ in
                    something not a structure or union since
                    r10-7127-gcb99630f254aaec6
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

Reduced from lvm2:

$ cat libdm.i
struct dm_tree_link {
  int list;
  int node;
} fn1() {
  0 ? ((struct dm_tree_link *)((char *)fn1 -
                               (char *)&((struct dm_tree_link *)0)->list))
          ->node
    : 0;
}

$ gcc-9 libdm.i -c
$ gcc libdm.i -c
libdm.i: In function ‘fn1’:
libdm.i:7:11: error: request for member ‘node’ in something not a structure or
union
    7 |           ->node
      |           ^~

Reply via email to