From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 06B5B395C00C; Sun, 14 Jun 2020 10:07:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06B5B395C00C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592129262; bh=pj/MSFH1SCN4Q8AyxAkxm5r19KkHFjUBZ2c2mzfIQ0I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EX8hMky/iV/VRtZP5/AssFaCZvNs377BWzKGLUJXMP1I5GSbLIKJoQBrTnABBdx2p jNrljI7dXSm/+KpgnaIQ4oEpU+mYz+RWmBWMaOgeeOMFgeexVi9uXdI7hhjIPmfOLD rIXNlG/81i75MvIiFR6c/Op/+mEnSgK2Rc6Hhpbk= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/95580] [11 Regression] ICE in tree_strip_any_location_wrapper at gcc/tree.h:4011 since r11-959-gb825a22890740f34 Date: Sun, 14 Jun 2020 10:07:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.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: Sun, 14 Jun 2020 10:07:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95580 --- Comment #5 from CVS Commits --- The releases/gcc-10 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:b2229175b53e3b1c58b4aa963e3d0bb06ca063bf commit r10-8297-gb2229175b53e3b1c58b4aa963e3d0bb06ca063bf Author: Jakub Jelinek Date: Tue Jun 9 08:39:36 2020 +0200 c-family: Fix up MEM_REF printing [PR95580] The C FE in the MEM_REF printing ICEs if the type of the first argument (which due to useless pointer conversions can be an arbitrary type) is a pointer to an incomplete type. The code just wants to avoid printing a cast if it is a pointer to single byte elements. 2020-06-09 Jakub Jelinek PR c/95580 * c-pretty-print.c (c_pretty_printer::unary_expression): Handle= the case when MEM_REF's first argument has type pointer to incomple= te type. * gcc.dg/pr95580.c: New test. (cherry picked from commit d6dbb71e468d0db561cc9eca99eeaca1efb81c11)=