From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9284338418A2; Thu, 2 Jun 2022 13:05:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9284338418A2 From: "amacleod at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105820] [13 Regression] ICE in invert, at value-range.cc:1971 Date: Thu, 02 Jun 2022 13:05:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amacleod at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2022 13:05:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105820 --- Comment #2 from Andrew Macleod --- Lets see try to remember.... it can be ambiguous. The inversion of undefined is not necessarily expect= ed to be varying in all circumstances.. Likewise, inverting varying is still varying in some circumstances and data flow. It depends on how you are usi= ng it.=20 Thus the onus is put on the caller to check for undefined or varying and do exactly what they expect it to do in their circumstance. I probably should have documented it at the time. Also you argued against undefined having a type, so there is no type to inv= ert an undefined to varying with.=