common::Intent::In, {ArgFlag::canBeNull}}},
SameCharNoLen, Rank::scalar, IntrinsicClass::inquiryFunction},
{"nint", {{"a", AnyReal}, DefaultingKIND}, KINDInt},
- {"norm2", {{"x", SameReal, Rank::array}, OptionalDIM}, SameReal,
+ {"norm2", {{"x", SameReal, Rank::array}, RequiredDIM}, SameReal,
Rank::dimReduced, IntrinsicClass::transformationalFunction},
+ {"norm2", {{"x", SameReal, Rank::array}, MissingDIM}, SameReal,
+ Rank::scalar, IntrinsicClass::transformationalFunction},
{"not", {{"i", SameInt}}, SameInt},
// NULL() is a special case handled in Probe() below
{"num_images", {}, DefaultInt, Rank::scalar,
integer, optional, intent(in) :: d
!PORTABILITY: The actual argument for DIM= is optional, pointer, or allocatable, and it is assumed to be present and equal to 1 at execution time
f1 = sum(a,dim=d)
+ !PORTABILITY: The actual argument for DIM= is optional, pointer, or allocatable, and it is assumed to be present and equal to 1 at execution time
+ f1 = norm2(a,dim=d)
end function
function f2(a,d)
real, intent(in) :: a(:)
real, allocatable :: f11(:)
!WARNING: The actual argument for DIM= is optional, pointer, or allocatable, and may not be absent during execution; parenthesize to silence this warning
f11 = sum(a,dim=d)
+ !WARNING: The actual argument for DIM= is optional, pointer, or allocatable, and may not be absent during execution; parenthesize to silence this warning
+ f11 = norm2(a,dim=d)
end function
function f12(a,d)
real, intent(in) :: a(:,:)
f13 = sum(a,dim=d)
end function
end module
-