public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94188] New: [10 Regression] error: request for member ‘node’ in something not a structure or union since r10-7127-gcb99630f254aaec6
@ 2020-03-16  8:47 marxin at gcc dot gnu.org
  2020-03-16  8:47 ` [Bug c/94188] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-03-16  8:47 UTC (permalink / raw)
  To: gcc-bugs

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
      |           ^~

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-18  8:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-16  8:47 [Bug c/94188] New: [10 Regression] error: request for member ‘node’ in something not a structure or union since r10-7127-gcb99630f254aaec6 marxin at gcc dot gnu.org
2020-03-16  8:47 ` [Bug c/94188] " marxin at gcc dot gnu.org
2020-03-16  9:13 ` rguenth at gcc dot gnu.org
2020-03-16 10:22 ` marxin at gcc dot gnu.org
2020-03-16 15:16 ` rguenth at gcc dot gnu.org
2020-03-16 15:33 ` jakub at gcc dot gnu.org
2020-03-18  8:15 ` cvs-commit at gcc dot gnu.org
2020-03-18  8:15 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).