public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102967] New: -Waddress with nested structures: Incorrect "the comparison will always evaluate as 'true'"
@ 2021-10-27 18:14 andrew.cooper3 at citrix dot com
  2021-10-27 18:55 ` [Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression msebor at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: andrew.cooper3 at citrix dot com @ 2021-10-27 18:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102967
           Summary: -Waddress with nested structures: Incorrect "the
                    comparison will always evaluate as 'true'"
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrew.cooper3 at citrix dot com
  Target Milestone: ---

Hello,

I have been compiling Xen with gcc/master, and found what appears to be a
regression from GCC 11.

https://godbolt.org/z/qa61fs1hK is a simplified repro.

The address comparison seems to be incorrectly applied to only of the two
possible options.  The expression as a whole is most certainly not
unconditionally true.

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

end of thread, other threads:[~2024-04-05 18:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 18:14 [Bug c/102967] New: -Waddress with nested structures: Incorrect "the comparison will always evaluate as 'true'" andrew.cooper3 at citrix dot com
2021-10-27 18:55 ` [Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression msebor at gcc dot gnu.org
2021-10-27 19:14 ` andrew.cooper3 at citrix dot com
2021-11-04 12:12 ` jbeulich at suse dot com
2021-11-04 15:35 ` msebor at gcc dot gnu.org
2021-11-04 15:51 ` jbeulich at suse dot com
2021-11-04 16:35 ` schwab@linux-m68k.org
2021-11-05  0:26 ` msebor at gcc dot gnu.org
2022-05-27  9:36 ` jbeulich at suse dot com
2022-09-19 19:57 ` amachronic at protonmail dot com
2024-03-11 12:34 ` pinskia at gcc dot gnu.org
2024-04-05 18:03 ` pinskia at gcc dot gnu.org
2024-04-05 18:04 ` pinskia 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).