Issue 74285
Summary [flang] Usage of assumed rank variable as a dummy argument
Labels flang
Assignees NimishMishra
Reporter NimishMishra
    LLVM Flang does not properly error out if an assumed rank variable is used as a dummy argument. Example - 

```
program test
   implicit none
contains
   subroutine check(var)
      class(*), intent(in) :: var(..)
      select type (var)
      end select
   end subroutine
end program test
```

LLVM-flang does not complain with this example. gfortran, on the other hand, errors out with "Assumed rank variable var may only be used as actual argument"
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to