[Bug fortran/52101] Obsolescence warning for non-obs. feature character name*length

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 3 07:22:00 GMT 2012


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |burnus at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-03 07:22:28 UTC ---
(In reply to comment #0)
> Gfortran 4.6.2 -std=f95 says a declaration character name*length is
> obsolescent. IMHO it is not; the obsolescent form is character*length name.
> 
> character greet*11
>                   1
> Warning: Obsolescent feature: Old-style character length at (1)

See Fortran 95 standard,
  http://gcc.gnu.org/wiki/GFortranStandards
  http://j3-fortran.org/doc/standing/archive/007/97-007r2/pdf/97-007r2.pdf
in Section "B.2 Obsolescent features":

"The obsolescent features are those features of Fortran 90 that were redundant
and for which better methods were available in Fortran 90. Section 1.7.2
describes the nature of the obsolescent features. The obsolescent features in
this standard are the following:
...
(9) CHARACTER* form of CHARACTER declaration - see B.2.7."


Closed as INVALID.



More information about the Gcc-bugs mailing list