From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 71EAD3857C73; Tue, 21 Jul 2020 00:47:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71EAD3857C73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595292460; bh=yfXxnbUp/nzzKx/nXn79avCo/aZnzr6tejtHErTKQf4=; h=From:To:Subject:Date:From; b=RLUfmZkTYUBQBzOYikjLIwxxPUreqIlT/TOoCQn/654ILJ/ufYOs9t4+siLJ4NjDX NUusoU0/FgVo8708Lgsm/MUFyfBjmQy9xjmeJBIYcGnV3BtsaWNK+dBJ7q9U/j2MSR 5o5mXIIi5/g6As9Zs3NEVTJTrZCebfOZXpQ1LFms= From: "jvdelisle at charter dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96255] New: [F2018] Implement option type spec for index DO CONCURRENT Date: Tue, 21 Jul 2020 00:47:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: jvdelisle at charter dot net 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 21 Jul 2020 00:47:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96255 Bug ID: 96255 Summary: [F2018] Implement option type spec for index DO CONCURRENT Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jvdelisle at charter dot net Target Milestone: --- F2018 provides for an optional type spec in the DO CONCURRENT construct: R1125 concurrent-header is ( [ integer-type-spec :: ] concurrent-control-li= st [ , scalar-mask-expr ] ) There is a constraint that it must be of type integer. This construct allow= s it to be declared locally to its block. program looper implicit none !integer i do concurrent (integer :: i=3D1:10) print *, i end do end program looper $ gfc -c looper.f03=20 looper.f03:6:19: 6 | do concurrent (integer :: i=3D1:10) | 1 Error: Syntax error in DO statement at (1) looper.f03:8:6: 8 | end do | 1 Error: Expecting END PROGRAM statement at (1) looper.f03:7:15: 7 | print *, i | 1 Error: Symbol =E2=80=98i=E2=80=99 at (1) has no IMPLICIT type=