https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92931

            Bug ID: 92931
           Summary: gfortran compiler errors
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zmth at yahoo dot com
  Target Milestone: ---

Created attachment 47488
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47488&action=edit
.o file

integer8 lisf(17),i8
nn=3
lisf=[1,1,2,(0,i=4,4*nn+5)] 
print,lisf
end

Then run the .exe file gives no reported error but it has the wrong, non 0,
values in the 5th thru 17th entries in array lisf. If change the 4*nn+5 to the
equal 17 then all is well.
Also the following does give the bogus ...array constructor... error message
when it should NOT.

integer8 lisf(17),i8
nn=3
i8=0
lisf=[1,1,2,(i8,i=4,4*nn+5)]
print,lisf
end

Windows 7 64bit , compile line :gfortran -save-temps gccerr.f03

Reply via email to