From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B39EA3858D20; Wed, 8 Feb 2023 20:40:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B39EA3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675888846; bh=Jb5R8KHigAEM5I/2vcmx4tH9SZNVp7tRsfqQaQ6UpJA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QEZB+l4xKfImljRnnNu/SjlbbanvVX99uvIsbELt+Ff3aSmNc5UA4y5TXAEqTWt// Jg1QjVvsaOIgyR7y93MC2CsWvao7fd/jkfxS/pj4BMutfvO527aHYtxzu9xnlc4mXW X30Q2cvoYWOrqiK1aKpPlu+VwSYPYU/1AqffjM4Y= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/69636] ICE(s) on using option -fmodule-private Date: Wed, 08 Feb 2023 20:40:46 +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: 6.0 X-Bugzilla-Keywords: accepts-invalid, error-recovery, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW 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: keywords 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=3D69636 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid --- Comment #9 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #8) Commenting out this line: > private :: cx_plus_int ! <- why does this make a difference? and adding in the main: print *, cx_plus_int(a, 2) make the code compile, while I believe it shouldn't due to the "private" statement in m. (This version is rejected by other compilers.)=