public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44604]  New: Wrong run-time checks with VALUE dummies and pointer/allocatable actuals
@ 2010-06-21  7:02 burnus at gcc dot gnu dot org
  2010-06-21  7:13 ` [Bug fortran/44604] " burnus at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-21  7:02 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-44604-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-12-06  0:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21  7:02 [Bug fortran/44604] New: Wrong run-time checks with VALUE dummies and pointer/allocatable actuals burnus at gcc dot gnu dot org
2010-06-21  7:13 ` [Bug fortran/44604] " burnus at gcc dot gnu dot org
2010-06-21  7:24 ` burnus at gcc dot gnu dot org
2010-06-21  8:55 ` dominiq at lps dot ens dot fr
2010-06-21  9:13 ` burnus at gcc dot gnu dot org
     [not found] <bug-44604-4@http.gcc.gnu.org/bugzilla/>
2013-06-11 20:24 ` dominiq at lps dot ens.fr
2013-06-17 15:05 ` dominiq at lps dot ens.fr
2014-12-06  0:09 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).