From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7CBAE3858010; Wed, 22 Sep 2021 18:01:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CBAE3858010 From: "davidsch at fedoraproject dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102460] New: fortran internal compile error in coverage.c Date: Wed, 22 Sep 2021 18:01:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: davidsch at fedoraproject dot org 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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: Wed, 22 Sep 2021 18:01:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102460 Bug ID: 102460 Summary: fortran internal compile error in coverage.c Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: davidsch at fedoraproject dot org Target Milestone: --- Created attachment 51495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D51495&action=3Dedit two source files and the compile commands to reproduce the issue the exact version of GCC: gcc-gfortran-11.2.1-1.fc34.x86_64 GNU Fortran (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1) the system type: Fedora 34 the options given when GCC was configured/built: Not sure, Fedoras default the complete command line that triggers the bug: f95 -ftest-coverage -save-temps -c MOD2.f the compiler output (error messages, warnings, etc.): during IPA pass: profile MOD2.f:6:9: 6 | USE MOD1,only : f1 | ^ internal compiler error: in coverage_begin_function, at coverage.c:662 Please submit a full bug report, with preprocessed source if appropriate. the preprocessed file (*.i*) that triggers the bug: No *.i* files are generated. I have attached two source files and the compile commands as attachment. PS: I have observed the same issue on debian with gcc 10, while gcc 8 works. PPS: Without coverage instruction, no error is raised.=