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

--- Comment #3 from John.Harper at msor dot vuw.ac.nz 2012-02-03 20:51:10 UTC 
---
On Fri, 3 Feb 2012, burnus at gcc dot gnu.org wrote:

> Date: Fri, 3 Feb 2012 07:22:28 +0000
> From: burnus at gcc dot gnu.org <gcc-bugzi...@gcc.gnu.org>
> To: john.har...@vuw.ac.nz
> Subject: [Bug fortran/52101] Obsolescence warning for non-obs. feature
>     character name*length
> 
> 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.
>
> -- 
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
I agree that CHARACTER* declarations are obsolescent but I still claim
that putting * after the variable name instead of after CHARACTER is
not, presumably because that form of declaration is still needed for 
something like CHARACTER a*2, b*4

-- John Harper, School of Mathematics Statistics and Operations Research
Victoria University, PO Box 600, Wellington 6140, New Zealand
e-mail john.har...@vuw.ac.nz phone (+64)(4)463 5276 fax (+64)(4)463 5045

Reply via email to