------- Comment #4 from dominiq at lps dot ens dot fr 2008-11-18 19:54 ------- With the patches in comment #2 and #3, compiling the test in comment #0 on i686-apple-darwin9 in 32 bit mode gives:
/var/tmp//ccMx60VC.s:13:non-relocatable subtraction expression, "_procptr" minus "L00000000001$pb" /var/tmp//ccMx60VC.s:13:symbol: "_procptr" can't be undefined in a subtraction expression Note that g95 compiles the test while ifort 11 returns: pr38152.f90(4): error #8169: The specified interface is not declared. [TEST] PROCEDURE(test), POINTER :: procptr ------------^ pr38152.f90(11): error #6437: A subroutine or function is calling itself recursively. [TEST] CALL bar (test) --------------^ pr38152.f90(12): error #8191: The procedure target must be a procedure or a procedure pointer. [TEST] procptr => test ---------------^ compilation aborted for pr38152.f90 (code 1) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38152