http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56079
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-01-25 23:10:28 UTC --- (In reply to comment #3) Sorry, an error in the test case. This has the same error: program gar_nichts use ISO_C_BINDING type(c_ptr) nada call foo(transfer(C_NULL_PTR,nada)) ! call foo(transfer(0_8, nada)) end program gar_nichts The test case works if the constant 0_8 is used instead.