public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/53818] New: -fno-automatic cannot have initializer
@ 2012-06-30 11:38 j.moyard at voila dot fr
  2012-06-30 13:38 ` [Bug fortran/53818] " steven at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: j.moyard at voila dot fr @ 2012-06-30 11:38 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53818
           Summary: -fno-automatic cannot have initializer
    Classification: Unclassified
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: j.moyard@voila.fr


I try to compile this fortran code on Red Hat 5.7 linux x86_64 platform :
logical function testing(date1, date2) result(test)
integer  date1, date2
test = ( (date1 < date2) .or. ( date1==date2 ))
end function testing

But when I integrate '-fno-automatic' option, I obtain this error message :
function testing(date1, date2) result(test)
                                          1
Error: Function result 'test' at (1) cannot have an initializer

Is-it a normal issue?


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

end of thread, other threads:[~2013-02-15  8:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-30 11:38 [Bug fortran/53818] New: -fno-automatic cannot have initializer j.moyard at voila dot fr
2012-06-30 13:38 ` [Bug fortran/53818] " steven at gcc dot gnu.org
2012-06-30 13:51 ` j.moyard at voila dot fr
2012-06-30 14:32 ` [Bug fortran/53818] -finit-local-zero -fno-automatic: Function result " burnus at gcc dot gnu.org
2012-06-30 14:41 ` burnus at gcc dot gnu.org
2012-07-05 16:33 ` j.moyard at voila dot fr
2013-02-15  8:51 ` burnus at gcc dot gnu.org
2013-02-15  8:52 ` 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).