[Bug fortran/53818] New: -fno-automatic cannot have initializer

j.moyard at voila dot fr gcc-bugzilla@gcc.gnu.org
Sat Jun 30 11:38:00 GMT 2012


             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)
Error: Function result 'test' at (1) cannot have an initializer

Is-it a normal issue?

More information about the Gcc-bugs mailing list