From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D708F3860C34; Tue, 28 Jul 2020 09:43:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D708F3860C34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595929434; bh=cSlbc9DGYvs1eQV6i5egrItyvkIYtu5tOiIPopLeaNQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WPNkUZfn9fz6ycvMdEl/N7zK8G1HoqASR+6uTPG68AloM/ekxKNamdB9GyG912XuP T2YtI5ekfNoe0kjyn63+igcSfAGy62uvIy8dxtQasJ9rrzQTYonXx1/eagsDVCByWY GPKeXEE0dDSesnq5nMo1BFI7zlJFfvXhCmNsE/Ag= From: "paul.richard.thomas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96320] gfortran 8-10 shape mismatch in assumed-length dummy argument character array Date: Tue, 28 Jul 2020 09:43:54 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paul.richard.thomas at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault 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 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, 28 Jul 2020 09:43:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96320 --- Comment #15 from paul.richard.thomas at gmail dot com --- Bother - I left the diagnostic line in the patch: + gfc_warning_now (0, "s1 %i s2 %i \n", s1->as->type, s2->as->typ= e); Sorry about that Paul On Tue, 28 Jul 2020 at 10:24, dominiq at lps dot ens.fr < gcc-bugzilla@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96320 > > --- Comment #14 from Dominique d'Humieres --- > After fixing the ICEs by replacing > 's1->ns->proc_name->attr.module_procedure' > with 's1->ns->proc_name && s1->ns->proc_name->attr.module_procedure' I am > left > with two regressions: > > FAIL: gfortran.dg/proc_decl_26.f90 -O 2 blank line(s) in output > FAIL: gfortran.dg/proc_decl_26.f90 -O (test for excess errors) > FAIL: gfortran.dg/whole_file_23.f90 -O 1 blank line(s) in output > FAIL: gfortran.dg/whole_file_23.f90 -O (test for excess errors) > > % gfc /opt/gcc/work/gcc/testsuite/gfortran.dg/proc_decl_26.f90 > f951: Warning: s1 2 s2 1 > > /opt/gcc/work/gcc/testsuite/gfortran.dg/proc_decl_26.f90:20:11: > > 20 | call foo(two) ! { dg-error "Shape mismatch in argument" } > | 1 > Error: Interface mismatch in dummy procedure 'f1' at (1): Shape mismatch = in > argument 'a' > f951: Warning: s1 2 s2 1 > > /opt/gcc/work/gcc/testsuite/gfortran.dg/proc_decl_26.f90:21:11: > > 21 | call bar(two) ! { dg-error "Shape mismatch in argument" } > | 1 > Error: Interface mismatch in dummy procedure 'f2' at (1): Shape mismatch = in > argument 'a' > % gfc /opt/gcc/work/gcc/testsuite/gfortran.dg/whole_file_23.f90 > f951: Warning: s1 3 s2 2 > > /opt/gcc/work/gcc/testsuite/gfortran.dg/whole_file_23.f90:18:32: > > 18 | pure integer function lensum (words, sep) > | 1 > Warning: Interface mismatch in global procedure 'lensum' at (1): Shape > mismatch > in argument 'words' > > -- > You are receiving this mail because: > You are on the CC list for the bug. > You are the assignee for the bug.=