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.