2 ! Test the fixes for the first two problems in PR40011
4 ! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>
6 ! This function would not compile because -fwhole-file would
7 ! try repeatedly to resolve the function because of the self
9 RECURSIVE FUNCTION eval_args(q
) result (r
)
11 PARAMETER (NNODE
= 10)
17 TYPE(NODE
) heap(NNODE
)
19 r
= eval_args(heap(q
)%cdr
)
20 END FUNCTION eval_args
23 real, dimension(2) :: test
29 program arr
! The error was not picked up causing an ICE
30 real, dimension(2) :: res
31 res
= test(2) ! { dg-error "Explicit interface required" }