This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56459] Wrongly rejects "TYPE(CHARACTER*1,)" (with comma)
- 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: Tue, 16 Dec 2014 08:52:50 +0000
- Subject: [Bug fortran/56459] Wrongly rejects "TYPE(CHARACTER*1,)" (with comma)
- Auto-submitted: auto-generated
- References: <bug-56459-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56459
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Closed as WONTFIX
For the IR, see http://j3-fortran.org/doc/year/14/14-006A.txt:
----------------------------------------------------------------
NUMBER: F08/0097
TITLE: Is the optional comma allowed in TYPE(CHARACTER*...)?
KEYWORD: TYPE, CHARACTER
DEFECT TYPE: Erratum
STATUS: In F2008 Corrigendum 3
QUESTION:
Consider
CHARACTER*1, A
TYPE(CHARACTER*1,) B
The optional comma in the declaration of B looks ugly.
Is this deliberate?
ANSWER:
No, this syntax was inadvertently allowed. An edit is provided to
remove it.
EDITS to 10-007r1:
[51:26+] 4.3.1.1, after C406, insert new constraint
"C406a (R403) In TYPE(<intrinsic-type-spec>) the
<intrinsic-type-spec> shall not end with a comma."
SUBMITTED BY: Malcolm Cohen
HISTORY: 13-285 m201 F08/0097 submitted - passed by J3 meeting
13-313 m202 Passed by J3 letter ballot 13-297
N1994 m202 Passed by WG5 ballot 7 N1991/92/94
N2002 m203 In F2008 Corrigendum 3