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 fortran/31162] New: missing warning for real do-loops with implicit typed variables


real r
      do r=1.0,2.0
        print*,r
      enddo
      end

gives
legacy.f:2.10:

      do r=1.0,2.0
         1
Warning: Obsolete: REAL DO loop iterator at (1)


which is ok, however
      do r=1.0,2.0
        print*,r
      enddo
      end
compiles without warning!

the same for
      implicit real(a-z)
      do r=1.0,2.0
        print*,r
      enddo
      end

Additionally: It seems this warning is tied to -std=legacy, perhaps
it would make more sense to tie it to -Wsurprising as it was the case for g77.


-- 
           Summary: missing warning for real do-loops with implicit typed
                    variables
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: manfred99 at gmx dot ch


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


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