From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 29FAA3858414; Tue, 27 Jun 2023 17:06:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29FAA3858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687885585; bh=yXltUDsjfpPiSg/ceWmL+oUDgObcimebBunhqxUZqcs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=prxnOGD51bpAWpxw1P+aua9LQvzba2ZsTx3kObwB5d+3mc4ucLgxevSbM3tuWtFcZ DaGQRIEbxVjdnHDMRtQcqbQTFA2SmA0AM0h0eadw1AYnDFVrAWQ+fAzvzqwQbouVYx dXfi7IM+6H0WCcVRy7I1dhVkN0p8lLs0JT0OlMl4= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110360] ABI issue with character,value dummy argument Date: Tue, 27 Jun 2023 17:06:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110360 --- Comment #16 from anlauf at gcc dot gnu.org --- In the meantime Bill opened pr110419 and posted: spawn [open ...] by value(kind=3D1): B by value(kind=3D1): A Program received signal SIGSEGV: Segmentation fault - invalid memory refere= nce. Backtrace for this error: #0 0xf7ba03f3 in ??? #1 0x10000d34 in val at /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/value_9.f90:47 #2 0x100009db in p at /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/value_9.f90:20 #3 0x100009db in main at /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/value_9.f90:45 FAIL: gfortran.dg/value_9.f90 -O3 -g execution test Line 20 corresponds to call val ("A",char(65)) which means that there should be a temporary holding the result of char(65) which should be passed by value.=