From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7CB7385841D; Thu, 2 Nov 2023 12:33:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7CB7385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698928436; bh=Qwd8siw7ft/wEMwF3sMi1A+KEpW1Qkr9IhOw0W/iAog=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jLkFPalyHmYRLxE/ELt53F2gHrWSCdu5Va3Xaju0rBGGSnyBVzBv/+FsEvap8VI8K dfcIPSGHg3i35E6iYQsWU0ovBEUOhcqTqNQbnPwDmptKvppyKlmdJ2hrzfWOJneBQO r2NExV+DvBe1fFDqH9K6U2C/zaj44N6nTiY/aooA= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/112347] [14 regression] ICE on jemalloc-5.3.0: Segmentation fault around convert_for_assignment() Date: Thu, 02 Nov 2023 12:33:56 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112347 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #7 from David Binderman --- Another test case: parse_args(char (**child_args_ptr_ptr)[]) { *child_args_ptr_ptr =3D calloc(1, sizeof(char)); } when compiled with -Wextra: $ ~/gcc/results/bin/gcc -c -Wextra bug975.c bug975.c:1:1: warning: return type defaults to =E2=80=98int=E2=80=99 [-Wimp= licit-int] 1 | parse_args(char (**child_args_ptr_ptr)[]) { | ^~~~~~~~~~ bug975.c: In function =E2=80=98parse_args=E2=80=99: bug975.c:2:25: warning: implicit declaration of function =E2=80=98calloc=E2= =80=99 [-Wimplicit-function-declaration] 2 | *child_args_ptr_ptr =3D calloc(1, sizeof(char)); | ^~~~~~ bug975.c:1:1: note: include =E2=80=98=E2=80=99 or provide a decla= ration of =E2=80=98calloc=E2=80=99 +++ |+#include 1 | parse_args(char (**child_args_ptr_ptr)[]) { bug975.c:2:25: warning: incompatible implicit declaration of built-in funct= ion =E2=80=98calloc=E2=80=99 [-Wbuiltin-declaration-mismatch] 2 | *child_args_ptr_ptr =3D calloc(1, sizeof(char)); | ^~~~~~ bug975.c:2:25: note: include =E2=80=98=E2=80=99 or provide a decl= aration of =E2=80=98calloc=E2=80=99 bug975.c:2:3: internal compiler error: Segmentation fault 2 | *child_args_ptr_ptr =3D calloc(1, sizeof(char)); | ^ 0xebd319 crash_signal(int) ../../trunk.year/gcc/toplev.cc:315 0x74ffd9 convert_for_assignment(unsigned int, unsigned int, tree_node*, tree_node*, tree_node*, impl_conv, bool, tree_node*, tree_node*, int, int) ../../trunk.year/gcc/c/c-typeck.cc:7370=