From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3105 invoked by alias); 5 Feb 2012 18:01:41 -0000 Received: (qmail 3082 invoked by uid 22791); 5 Feb 2012 18:01:40 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_SG X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 05 Feb 2012 18:01:27 +0000 From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/52101] Obsolescence warning for non-obs. feature character name*length Date: Sun, 05 Feb 2012 18:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-02/txt/msg00523.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52101 --- Comment #8 from Steve Kargl 2012-02-05 18:00:59 UTC --- On Sun, Feb 05, 2012 at 09:58:46AM +0000, burnus at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52101 > > --- Comment #7 from Tobias Burnus 2012-02-05 09:58:46 UTC --- > (In reply to comment #4) > > I believe that John is correct. The form 'CHARACTER*n string' > > is obsolescent while the form 'CHARACTER string*n' is not. > > After re-checking the standard, I concur. However, I want to point out that a > simple quoting such as > > > From Sec 5.1 in the F2003 standard, > > R504 entity-decl is object-name [( array-spec )] [ * char-length ] > > [ initialization ] > > or function-name [ * char-length ] > > is insufficient as one cannot see whether '[ * char-length ]' is obsolescent: > > "The descriptions of obsolescent features appear in a smaller type size." > (F2008, 1.4.5 Text conventions). > > However, I have just check it and the font size seems to be the normal one. > It is sufficient once one reads B.2.8. B.2.8 CHARACTER* form of CHARACTER declaration In addition to the CHARACTER*char-length form introduced in Fortran 77, Fortran 90 provided the CHARACTER([ LEN = ] type-param-value) form. The older form (CHARACTER*char-length) is redundant. This clear applies to the BNF give by R403 -> R404 -> R421.