public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55733] New: -fno-automatic: Fails for scalar allocatables
@ 2012-12-18 15:20 burnus at gcc dot gnu.org
  2012-12-18 15:22 ` [Bug fortran/55733] " burnus at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-12-18 15:20 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55733
           Summary: -fno-automatic: Fails for scalar allocatables
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: janus@gcc.gnu.org


-fno-automatic implies SAVE. However, it doesn't work for scalar allocatables:


subroutine foo(i)
  integer :: i
  integer, allocatable :: j
  if (i == 1) j = 42
  if (.not. allocated (j)) call abort ()
  if (j /= 42) call abort ()
end

call foo(1)
call foo(2)
end


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-12-19 23:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-18 15:20 [Bug fortran/55733] New: -fno-automatic: Fails for scalar allocatables burnus at gcc dot gnu.org
2012-12-18 15:22 ` [Bug fortran/55733] " burnus at gcc dot gnu.org
2012-12-18 15:25 ` burnus at gcc dot gnu.org
2012-12-18 16:00 ` burnus at gcc dot gnu.org
2012-12-19  9:21 ` burnus at gcc dot gnu.org
2012-12-19  9:27 ` burnus at gcc dot gnu.org
2012-12-19 23:06 ` burnus at gcc dot gnu.org

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).