From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D09863858C83; Wed, 28 Sep 2022 13:28:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D09863858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664371701; bh=JHxuiyDw3FPMUR0+kKxQTPw+DGQYkG7x1W+iU5FSQGA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DMAu/DHS0da/R7VmrAVlxLG6/9FkzQqaJFja45G+WtWPY6VZYzXpJ2stQDPJ/zsmJ 7u3HQg1xaCYQ4MBlHOwP0yTuZRFrOn2UmKh5rJ74VX2l1l83Uv+p120Q4UOEwflkkE 8+x+IVBEsRN19Ht+r/TeWBjh6aaXVCfqhDOeUApo= From: "r.m.potvliege at durham dot ac.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107068] Run-time error when reading logical arrays with a namelist Date: Wed, 28 Sep 2022 13:28:21 +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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: r.m.potvliege at durham dot ac.uk 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: 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=3D107068 --- Comment #1 from Robert Potvliege --- Reading a logical array through a namelist triggers an (apparently) spurious run time error in some cases. E.g., when I am compiling the following code = with gfortran, program test logical, dimension(3,3) :: flc,flp namelist/inputdata/flc,flp ! read(5,inputdata) ! end program test and read the following file, &INPUTDATA FLC =3D T, FLP(1,2) =3D T, / the execution stops with the error message At line 5 of file progtest.f90 (unit =3D 5, file =3D 'stdin') Fortran runtime error: Bad repeat count in item 1 of list input However, there is no error for the following input file &INPUTDATA FLC =3D T, FLP =3D T, / or the following one &INPUTDATA FLP(1,2) =3D T, / etc. No error is produced for any of these input files if I compile this sh= ort program with the Intel compiler I can access rather than gfortran.=