The attached test case does not initialize to NULL() the inner pointers after an
ALLOCATE statement. 
Note that the problem only surfaces if the heap is sufficiently dirty. 


------------- output -----------
[EMAIL PROTECTED] TEMP]$ gfortran -v 
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1-20050515/configure
--prefix=/usr/local/gfortran
Thread model: posix
gcc version 4.1.0 20050515 (experimental)
[EMAIL PROTECTED] TEMP]$ gfortran -o tst1  tst1.f90 
[EMAIL PROTECTED] TEMP]$ ./tst1
 This should not happen
[EMAIL PROTECTED] TEMP]$

-- 
           Summary: Nested derived type pointer component not initialized on
                    ALLOCATE
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sfilippone at uniroma2 dot it
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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

Reply via email to