4 Jan 2025 11:28
#31793
The following code generates a run time access violation when compiled with the 64 bit compiler.
The 32 bit compiler returns the correct value of 1.d0
program bug_in_product
implicit none
real*8 :: a(0)
print*, product(a)
end program bug_in_product
The access violation occurs for both real and real*8 a. It does not occur for complex a.