From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C2073851C2A; Mon, 29 Jun 2020 17:43:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C2073851C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593452600; bh=0Lc7d/SEYpQHaGjbgWsUnzVcD4SsLqEVfv1qBczWquc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NzAWNHzVAOtV+CybpgPHo1bnrH4CeFl3lWKUuJHEesXszo7BCBxWuaa1zPVC0Rcbz EhFJby/PG/ZLFZdK6B32u/R03Ox7WPUJ7t1Ne3z+TACHDefAx1g/kbhHKElstMrL+K IRoyYuU8qDs8nIh1MoMJEQhtn6QT6DT9TbsEhIIE= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/95971] [10 regression] Optimizer converts a false boolean value into a true boolean value Date: Mon, 29 Jun 2020 17:43:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc everconfirmed cf_reconfirmed_on 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: Mon, 29 Jun 2020 17:43:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95971 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING CC| |marxin at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed| |2020-06-29 --- Comment #4 from Martin Li=C5=A1ka --- > The source code initializes A::a to (char*)1 in order to keep the code as > small as possible to trigger the issue. A::a could have been initialized = to > a valid delete-able heap address, but this would unnecessarily enlarge the > source code. Thank you for the report. Please extend the example in order to not contain undefined behavior. delete 1 crashes for me.=