[PATCH] D136628: [flang] Add semantics tests for lock-stmt

Damian Rouson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 25 17:32:22 PDT 2022


rouson requested changes to this revision.
rouson added a comment.
This revision now requires changes to proceed.

In order check constraint C1608 in the Fortran 2018 standard, let's add a check that flang accepts the following with and without the allocatable attribute

    use iso_fortran_env
    type foo
      type(lock_type), allocatable :: bar
    end type
    type(foo) foobar[*]
  end

which gfortran rejects when the allocatable attribute is present but the NAG (nagfor) compiler correctly accepts either way.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136628/new/

https://reviews.llvm.org/D136628



More information about the llvm-commits mailing list