[Bug fortran/68778] [F03] Missing default initialization of finalized derived types type(C_PTR) component in subroutines

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 16 21:07:00 GMT 2016


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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |janus at gcc dot gnu.org
      Known to work|                            |7.0
            Summary|Missing default             |[F03] Missing default
                   |initialization of finalized |initialization of finalized
                   |derived types type(C_PTR)   |derived types type(C_PTR)
                   |component in subroutines    |component in subroutines
      Known to fail|                            |6.2.0

--- Comment #5 from janus at gcc dot gnu.org ---
With gfortran 6.2, I get arbitrary values (T or F), changing in each run.

With current trunk I always get F, so apparently this has been fixed on trunk.

Can anyone confirm this?


More information about the Gcc-bugs mailing list