You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test case is extended from gfortran.dg/pr69739.f90
program p
implicit none
integer :: x(2,3,4)
integer, allocatable :: y(:)
y = foo(x)
print *, size(y)
contains
function foo(a)
integer :: a(:, :, :)
integer :: foo(1:product(ubound(a)))
print *, size(foo)
foo = 1
end function
end program
gfortran output:
24
24
flang output:
0
0
The text was updated successfully, but these errors were encountered:
This test case is extended from gfortran.dg/pr69739.f90
gfortran output:
flang output:
The text was updated successfully, but these errors were encountered: