The following program should be valid but does not compile with PGI 19.10 on linux:
program norm2_expression
implicit none
real, dimension(9,9) :: a,b
call random_number(a)
call random_number(b)
print*, norm2(a-b)
end program norm2_expression
the error is
PGF90-S-0000-Internal compiler error. transform_call:Array Expression can't be here 30 (norm2_expression.f90: 9)
0 inform, 0 warnings, 1 severes, 0 fatal for norm2_expression