[Bug fortran/41129] unassociated pointers are reported as associated by associated function in types

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Thu Aug 20 07:09:00 GMT 2009



------- Comment #3 from jv244 at cam dot ac dot uk  2009-08-20 07:09 -------
the pointers are undefined and thus it is not standard conforming to ask for
their state. This is like asking if an uninitialized integer is 0 or not.

you can use

  type S0
     real, dimension(:), pointer :: P  => NULL()         ! NLEV
  end type S0

to provide an 'initial value'.


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41129



More information about the Gcc-bugs mailing list