From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8D3C73858CDA; Fri, 20 Oct 2023 15:13:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D3C73858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697814787; bh=rZyL8RGTdyrEKROfV2zwMKD4tJ+VRlFp1GEYoq6++tw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xmojamkMxKSImsalaVxSulncpaRK1m1CZWTa/FdximfC94Zxi/2u1tH77cZv2aGg4 rWxRcxZ+FQSKftF9IRyzFf3wK916ZgaPen9QLo/Z37tFN1iRI3jNgFK2rUKVfyN5aM Wm8Ts+Qs4WLxdp2mUxCu34tw68W+t/fJmUj5UxAw= From: "aluaces at udc dot es" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110644] Error in gfc_format_decoder Date: Fri, 20 Oct 2023 15:13:06 +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.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aluaces at udc dot es X-Bugzilla-Status: WAITING 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=3D110644 --- Comment #10 from Alberto Luaces --- Ok, indeed they were some warnings. I had to use &gfc_current_locus, as you suggested, so now all of them are pointed at the end of the file. Yes, I am using OOP: we have a "states" class that has its assignment and c= opy methods. Those are the ones that I think that they are called implicitly by the compiler, and gfortran is struggling to point exactly where. I think now I may be able to get a minimal case for aiding solving this bug= .=20 Let me see if I can. [4/126] Building Fortran object CMakeFiles/MBSLIM.dir/solidos/solidos_Sensib.f90.o [...]solidos/solidos_Sensib.f90:1001:28: 1001 | END SUBMODULE SOLIDOS_Sensib | 1 Warning: Non-RECURSIVE procedure =E2=80=98statescopystates=E2=80=99 at (1) = is possibly calling itself recursively. Declare it RECURSIVE or use =E2=80=98-frecursive=E2=80= =99 [...]solidos/solidos_Sensib.f90:1001:28: 1001 | END SUBMODULE SOLIDOS_Sensib | 1 Warning: Non-RECURSIVE procedure =E2=80=98statesassignstates=E2=80=99 at (1= ) is possibly calling itself recursively. Declare it RECURSIVE or use =E2=80=98-frecursi= ve=E2=80=99 [...]solidos/solidos_Sensib.f90:1001:28: 1001 | END SUBMODULE SOLIDOS_Sensib | 1 Warning: Non-RECURSIVE procedure =E2=80=98statecopystate=E2=80=99 at (1) is= possibly calling itself recursively. Declare it RECURSIVE or use =E2=80=98-frecursive=E2=80= =99 [...]solidos/solidos_Sensib.f90:1001:28: 1001 | END SUBMODULE SOLIDOS_Sensib | 1 Warning: Non-RECURSIVE procedure =E2=80=98stateassignstate=E2=80=99 at (1) = is possibly calling itself recursively. Declare it RECURSIVE or use =E2=80=98-frecursive=