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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |burnus at gcc dot gnu.org
         Resolution|---                         |WONTFIX

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
WONTFIX.

I don't think we will fix this for 4.8 - especially as 4.9 and 5 are working.
If someone feels inclined to fix it, feel free to reopen.


(In reply to Arjen Markus from comment #0)
> I needed to pass a null pointer from Fortran to C. One attempt to do so was
> via code like this:

>         subroutine croutine( array ) bind(c,name='croutine')
>             real, dimension(*) :: array
>         end subroutine

How about using "OPTIONAL":
             real, dimension(*), OPTIONAL :: array  

>     call croutine( transfer(c_null_ptr, dummy) )

... and call it simply as "call croutine()"?


That's a Fortran 2008 feature, supported by GCC since 4.7.

Reply via email to