File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -948,6 +948,11 @@ void CheckHelper::CheckObjectEntity(
948
948
" Component '%s' with ATTRIBUTES(DEVICE) must also be allocatable" _err_en_US,
949
949
symbol.name ());
950
950
}
951
+ if (IsAssumedSizeArray (symbol)) {
952
+ messages_.Say (
953
+ " Object '%s' with ATTRIBUTES(DEVICE) may not be assumed size" _err_en_US,
954
+ symbol.name ());
955
+ }
951
956
break ;
952
957
case common::CUDADataAttr::Managed:
953
958
if (!IsAutomatic (symbol) && !IsAllocatable (symbol) &&
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ module m
51
51
contains
52
52
attributes(device) subroutine devsubr(n,da)
53
53
integer, intent(in) :: n
54
- real, device :: da(*) ! ok
54
+ !ERROR: Object 'da' with ATTRIBUTES(DEVICE) may not be assumed size
55
+ real, device :: da(*)
55
56
real, managed :: ma(n) ! ok
56
57
!WARNING: Pointer 'dp' may not be associated in a device subprogram
57
58
real, device, pointer :: dp
You can’t perform that action at this time.
0 commit comments