This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/25403] New: gfortran run-time error with multiple tabs in format continuation


If a format statement is continued onto another line and the continuation
line is indented with more than one tab after the continuation character,
there is
a runtime error such as
Fortran runtime error: Unexpected element in format
(i4,i4,                                                             i4,i4)
                                                           ^
A test program for this is:
       do i=1,1
          do j=1,2
            do k=1,1
              do l=1,1
                write(*,101)i,j,k,l
101             format(i4,i4,
     &              i4,i4)
              enddo
            enddo
          enddo
        enddo
        call exit(0)
        end

Where the indentation is with tabs (e.g., tabify in emacs).

Fails on Fedora Core 4, gcc-gfortran-4.0.2-8.fc4
Also fails under Mac OS X , gcc version 4.1.0 20051026 (experimental)


-- 
           Summary: gfortran run-time error with multiple tabs in format
                    continuation
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mast at colorado dot edu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]