Compile with the following with '-c -standard-semantics'
program test integer, allocatable :: y(:) y = merge(1, 0, [0.d0] > 0.d0)end program
Thank you for reporting this error and for the convenient reproducer. I confirmed the error and reported it to Development (internal tracking id below) and will keep the thread updated regarding a fix.
The option -assume realloc_lhs implicit with -standard-semantics produces the error. If not dependant on that option or at least as a work-around to permit successful compilation of the affected source file, add -assume norealloc_lhs *after* -standard-semantics to override the implicit setting with -standard-semantics.
(Internal tracking id: DPD200237427)