This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/44604] New: Wrong run-time checks with VALUE dummies and pointer/allocatable actuals


Reported by Michael Briggs at
http://gcc.gnu.org/ml/fortran/2010-06/msg00205.html

Checking fails for a zero-initialized pointers/allocatable scalar
variable/array element passed to a dummy argument with VALUE attribute.

For the following program, it fails for -fcheck=all:

program TestSmall
  implicit none
 integer, allocatable :: ptrVar
  allocate ( ptrVar )
  ptrVar = 0  ! if changed to 1, the problem goes away
  call test(ptrVar)
contains
  subroutine test(n)
     integer, VALUE :: n
  end subroutine test
end program TestSmall


-- 
           Summary: Wrong run-time checks with VALUE dummies and
                    pointer/allocatable actuals
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]