From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B4790385E828; Fri, 12 Jan 2024 01:51:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4790385E828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705024275; bh=74eLtY+WkmTJlggOen1HGYjVKTvxxgrnbzhZhJgkBPc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=B+hDlrgdwy+51h2a8saw4lpAY31S1ySTEFqcgmQE7R3KT4jp1LA+uubqPl9i9WwAf eXtE+XMwT/sNtvCqlQwiPDW5hnWK1HFanA0tj4u9mV9ABgVa3RiZ9jm2A3g6/z5NCU pqGJFvPO8cwLvflq6rt/7af8q1lUOaAjkQ8Zz0MY= From: "everythingfunctional at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/113338] Valid Code Rejected, bind(C) procedure with pointer argument Date: Fri, 12 Jan 2024 01:51:15 +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: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: everythingfunctional at protonmail 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: --- 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=3D113338 --- Comment #2 from Brad Richardson --- The addition of CFI_cdesc_t in 2018 means it is possible to pass non-interoperable types to C so long as it doesn't need to know anything ab= out its type (i.e. doesn't try to modify or copy it). And yes, in this example = it's possible to add bind(C) to the type, but in the code I'm trying to write I can't.=