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/31813] New: Warn about deleted feature: H edit descriptor


>From Fortran 95 standard, Annex B, B1: Deleted Features:

"H edit descriptor.
In FORTRAN 77, and for consistency also in Fortran 90, there was an alternative
form of character string edit descriptor, which had been the only such form in
FORTRAN 66; this has been deleted."

Other compiles warn:

NAG: f95
Deleted feature used: H edit descriptor

Intel: ifort -stand f95
Warning: The cH edit descriptor has been deleted in Fortran 95.

g95 -std=f95
Warning (100): The H format specifier is a deleted language feature in format
string at (1)

Example:
      SUBROUTINE ERROR_SUB(TAG,STR,BLANK)
        IMPLICIT none
        CHARACTER (LEN=*) :: TAG
        CHARACTER (LEN=*) :: STR
        CHARACTER (LEN=*) :: BLANK
        INTEGER inden, uixml, i
        i=LEN_TRIM(str)
        inden = 10
        WRITE(uixml,'(A,"<i type=",1H","string",1H"," name=",1H",A,1H"&
              &,">",A,"</i>")',ADVANCE="Yes") blank(1:inden),tag,str(1:i)
      END SUBROUTINE ERROR_SUB


-- 
           Summary: Warn about deleted feature: H edit descriptor
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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