https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59888

--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> do we have a revision # that triggered this behaviour?
> (or has it "always" been there?)

Up to r189986 (2012-07-30) compiling the second code in comment 6 gives the
error

pr59888_3.f90:5.22:

    call gee(c_funloc(gee))
                      1
Error: Parameter 'gee' to 'c_funloc' at (1) must be BIND(C)

After r190090 (2012-08-02) compiling the same code gives

ld: illegal text-relocation to '___foo_MOD_gee' in
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccutec2S.o from 'anon' in
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccutec2S.o for architecture
x86_64
collect2: error: ld returned 1 exit status

Probably

2012-07-31  Tobias Burnus  <bur...@net-b.de>

        * interface.c (gfc_procedure_use): Return gfc_try instead of void.
        * gfortran.h (gfc_procedure_use): Update prototype.
        * resolve.c (gfc_iso_c_func_interface): Allow noninteroperable
        procedures for c_funloc for TS29113.
        * (gfc_iso_c_sub_interface): Ditto for c_f_procpointer. Add
        diagnostic for c_ptr vs. c_funptr for c_f_(proc)pointer.

Reply via email to