------- Comment #2 from burnus at gcc dot gnu dot org 2009-08-04 09:34 ------- The following patch is also missing. Probably appears when using abstract interfaces. One needs to check the proc pointer machinery as well as there one might also miss such an option - there, one might also need to add options. e.g. the interface name points to a STDCALL function while one adds a DLLEXPORT (or something like that - I cannot come up with an example which makes sense).
Index: gcc/fortran/symbol.c =================================================================== --- gcc/fortran/symbol.c (revision 150396) +++ gcc/fortran/symbol.c (working copy) @@ -1641,6 +1641,8 @@ gfc_copy_attr (symbol_attribute *dest, s { int is_proc_lang_bind_spec; + dest->ext_attr = src->ext_attr; + if (src->allocatable && gfc_add_allocatable (dest, where) == FAILURE) goto fail; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40955