------- Comment #7 from dominiq at lps dot ens dot fr 2009-10-23 15:01 ------- It seems that the patch in comment #2 has been silently applied (I have been unable to find when) and that the test in comment #0 no longer gives an ICE for gfortran 4.3.4, 4.4.1, and trunk.
Apparently the failure of the test in comment #4 is due to the fact that c_funptr is not mangled the way it is defined (through different modules and an only clause). If I remove module 'a' and the comment in module 'b', the code compiles. This pr could probably be closed and a new one open for the problem of comment #4. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37829