This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52101] Obsolescence warning for non-obs. feature character name*length
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 Feb 2012 07:30:24 +0000
- Subject: [Bug fortran/52101] Obsolescence warning for non-obs. feature character name*length
- Auto-submitted: auto-generated
- References: <bug-52101-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52101
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-03 07:30:24 UTC ---
As postscript:
* A program which uses the CHARACTER* declaration is still perfectly valid
Fortran 95/2003/2008. - Thus, you do not have to react on the warning, you
should only avoid it for new code and could consider fixing it in the old code.
* A Fortran compiler is required to diagnose obsolescent features. From Fortran
2008, Section 1.5:
"A processor conforms to this part of ISO/IEC 1539 if:
[...]
(2) it contains the capability to detect and report the use within a submitted
program unit of a form designated herein as obsolescent, insofar as such use
can be detected by reference to the numbered syntax rules and constraints;"
That's what gfortran does if one ask for it (-std=f95/f2003/f2008/f2008tr).