From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 15919385842E; Tue, 22 Mar 2022 11:09:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15919385842E From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/105012] [12 Regression] wrf from SPECCPU2017 ICEs during LTO linking since r12-7692-g8db155ddf8cec9 Date: Tue, 22 Mar 2022 11:09:56 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 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 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: Tue, 22 Mar 2022 11:09:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105012 --- Comment #8 from Martin Li=C5=A1ka --- Yes: $ cat module_cam_error_function.fppized.f90 module error_function integer, parameter :: r8 =3D selected_real_kind(12) ! 8 byte real contains SUBROUTINE CALERF_r8(ARG, RESULT, JINT) integer, parameter :: rk =3D r8 real(rk), intent(in) :: arg real(rk), intent(out) :: result IF (Y .LE. THRESH) THEN END IF end SUBROUTINE CALERF_r8 FUNCTION DERFC(X) integer, parameter :: rk =3D r8 ! 8 byte real real(rk), intent(in) :: X real(rk) :: DERFC CALL CALERF_r8(X, DERFC, JINT) END FUNCTION DERFC end module error_function $ gcc module_cam_error_function.fppized.f90 -c -O module_cam_error_function.fppized.f90:10:24: 10 | end SUBROUTINE CALERF_r8 | ^ Error: 'function_decl' LHS in clobber statement derfc derfc =3D{v} {CLOBBER}; during GIMPLE pass: ccp module_cam_error_function.fppized.f90:10:24: internal compiler error: verify_gimple failed 0x10279c5 verify_gimple_in_cfg(function*, bool) /home/marxin/Programming/gcc/gcc/tree-cfg.cc:5562 0xeee32e execute_function_todo /home/marxin/Programming/gcc/gcc/passes.cc:2085 0xeee94b execute_todo /home/marxin/Programming/gcc/gcc/passes.cc:2139 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=