------- Comment #5 from burnus at gcc dot gnu dot org 2010-07-28 13:51 -------
(In reply to comment #3)
> Minimal test case, compile with:
There is something odd: If one has the order
subroutine VALUE()
subroutine NEXT
it actually works; one then goes
gfc_create_function_decl for VALUE
gfc_get_extern_function_decl for NEXT
call gfc_create_function_decl for NEXT
while for the opposite order it fails:
gfc_create_function_decl for NEXT
gfc_create_function_decl for VALUE
gfc_get_extern_function_decl for NEXT
In both cases the backend_decl is used in gfc_get_extern_function_decl. And in
all cases it seems as if the the module's next's gsym->...->backend_decl ==
NULL.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45087