Issue |
131909
|
Summary |
[flang] Missing diagnostic that an assumed-size array is being passed as the `ac-value` of an array constructor
|
Labels |
flang:frontend
|
Assignees |
|
Reporter |
DanielCChen
|
Consider the following case:
```
real :: arr(4)
call sub(arr)
contains
subroutine sub(arg)
real :: arg(*)
call sub2([arg]) !! Should be error
end
subroutine sub2(arg)
real :: arg(:)
end
end
```
An assumed-size array shall not be allowed as the `ac-value` of an array constructor as it doesn't provide the shape information.
All ifort, gfortran and XLF issue an error message.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs