From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 49D153857000; Wed, 10 Mar 2021 07:53:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49D153857000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99506] internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Wed, 10 Mar 2021 07:53:26 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status priority cf_reconfirmed_on version everconfirmed cc 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: Wed, 10 Mar 2021 07:53:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99506 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Priority|P3 |P4 Last reconfirmed| |2021-03-10 Version|unknown |11.0 Ever confirmed|0 |1 CC| |marxin at gcc dot gnu.org --- Comment #1 from Martin Li=C5=A1ka --- Reduced test-case: module numeric_kinds integer, parameter :: single =3D kind(1.0) integer, parameter :: double =3D selected_real_kind(2*precision(1.0_singl= e)) end module numeric_kinds module indices contains function find_idx(x, xx) result(idx) end function find_idx function nearest_idx(x, xx) result(idx) if (x < xx0) then if (xx0 - x < 0/2) then end if end if do if (dl >=3D 0 .and. last_dl <=3D 0) then end if end do end function nearest_idx function close_enough_idx(x, xx, eps, verbose) result(res) logical, intent(in), optional:: verbose if (abs0 <=3D eps) then if (present(verbose)) then if (verbose .eqv. .true.) then end if end if end if end function close_enough_idx end module indices program fix_track_partials use numeric_kinds, only: double character(*), parameter:: & youf =3D "track-partial-nws200-y-grid.dat" integer, parameter:: & lonw100 =3D 10000, lats100 =3D -4000, dlon100 =3D 10, dlat100 =3D 10 integer, parameter:: imax =3D 50, jmax =3D 350 integer, dimension(*), parameter:: & latt100 =3D [((lats100 + dlat100 * j - dlat100/2), j=3D1,jmax)] real(double), dimension(*), parameter:: & latt =3D [(latt100(i)/100.d0, j=3D1,jmax)] real(double), dimension(:), allocatable:: xs, ys, xs_fixed, ys_fixed call move_to_nearest(ys_fixed, pnts=3Dys, axis=3Dlatt) contains subroutine read_track(xs, ys, file) end subroutine read_track subroutine save_track(xs, ys, file) end subroutine save_track subroutine move_to_nearest(res, pnts, axis) real(double), intent(out):: res(:) real(double), intent(in) :: pnts(:), axis(:) end subroutine move_to_nearest subroutine extend_arr_double(arr, idx, mes) end subroutine extend_arr_double subroutine shrink_arr_double(arr, idx, mes) end subroutine shrink_arr_double end program fix_track_partials It's very old, at least as old as GCC 4.8.0.=