From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 76956385735F; Wed, 26 Oct 2022 05:09:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76956385735F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666760989; bh=udVi6jgUxbIGkpieOInF5ZvqRY+/HOhAc4UyypOCQRg=; h=From:To:Subject:Date:From; b=biYCpBbJ9WOsum8kttezGV29Rr8H18ZcwjrSlKF/56nLbx9v1L6u2RtNOw+o08iWg R3nT8xAx3/+lplHrX3mrLmRJNhI98BBNxbiNVUh/0BZP9AtQKR/bovgr8bqPHxuboZ Ityr6Btf4nezDNdaE8S+77gKjHaOXWyqB67WTP/U= From: "damian at archaeologic dot codes" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107406] New: lock_type Date: Wed, 26 Oct 2022 05:09:48 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: damian at archaeologic dot codes 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107406 Bug ID: 107406 Summary: lock_type Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: damian at archaeologic dot codes Target Milestone: --- gfortran 12.2 accepts the code below if the "allocatable" attribute is remo= ved: % cat gfortran-lock-issue.f90=20 use iso_fortran_env type foo type(lock_type), allocatable :: bar end type type(foo) foobar[*] end % gfortran -fcoarray=3Dsingle gfortran-lock-issue.f90=20 gfortran-lock-issue.f90:3:39: 3 | type(lock_type), allocatable :: bar | 1 Error: Allocatable component bar at (1) of type LOCK_TYPE must have a codimension The NAG compiler accepts the above code and I believe constraint C1608 in t= he Fortran 2018 standard makes the above code valid. Is this related to PR 92122?=