[Bug fortran/40737] Pointer references sometimes fail to define "span" symbols

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 22 07:11:00 GMT 2009



------- Comment #5 from burnus at gcc dot gnu dot org  2009-07-22 07:10 -------
Reduced test case. The crucial part is the span ("1:2") in the assignment - and
that "Ro" is use-associated.


Dump:

tf_ad_splitting_driver_plane ()
{  [...]
  extern integer(kind=8) span.0 = 0;
   [...]
    span.0 = 4;


module testmod
  implicit none
  type VARIABLES_MAILLE
      real :: cell_var
  end type VARIABLES_MAILLE
  type (VARIABLES_MAILLE), pointer, dimension( :) :: Hydro_vars
  real, pointer, dimension(:) :: Ro
end module testmod

program TF_AD_SPLITTING_DRIVER_PLANE
  use testmod
  implicit none
  Ro => Hydro_vars(1:2)%cell_var
end program


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|4.3.2 4.4.0                 |4.3.2 4.4.0 4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-22 07:10:56
               date|                            |


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



More information about the Gcc-bugs mailing list