Bug 41075 - [F2008] Implement unlimited format item
Summary: [F2008] Implement unlimited format item
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Jerry DeLisle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-15 02:22 UTC by Jerry DeLisle
Modified: 2009-08-17 14:42 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-08-17 03:51:53


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry DeLisle 2009-08-15 02:22:55 UTC
I am going to take this on.

write( 10, ’( "iarray =", *( i0, :, ","))’) iarray
Comment 1 Jerry DeLisle 2009-08-17 03:51:53 UTC
Patch submitted to list.

http://gcc.gnu.org/ml/fortran/2009-08/msg00195.html
Comment 2 Jerry DeLisle 2009-08-17 14:25:56 UTC
Subject: Bug 41075

Author: jvdelisle
Date: Mon Aug 17 14:25:38 2009
New Revision: 150843

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150843
Log:
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* scanner.c (gfc_next_char_literal): Add comment to improve 
	readability.
	* io.c (enum format_token): Add FMT_STAR. (format_lex): Add case
	for '*'. (check_format): Check for left paren after '*'.  Change
	format checks to use %L to improve format string error locus.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/io.c
    trunk/gcc/fortran/scanner.c

Comment 3 Jerry DeLisle 2009-08-17 14:27:42 UTC
Subject: Bug 41075

Author: jvdelisle
Date: Mon Aug 17 14:27:29 2009
New Revision: 150844

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150844
Log:
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* io/io.h (enum format_token): Add FMT_STAR.
	* io/format.c (format_lex): Add case for FMT_STAR.
	(parse_format_list): Parse FMT_STAR and check for left paren
	after. (next_format0): Modify helper function to check for
	unimited format and return the repeated format node.  Update
	comments to clarify.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/format.c
    trunk/libgfortran/io/io.h

Comment 4 Jerry DeLisle 2009-08-17 14:40:54 UTC
Subject: Bug 41075

Author: jvdelisle
Date: Mon Aug 17 14:40:40 2009
New Revision: 150845

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150845
Log:
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* gfortran.dg/unlimited_fmt_1.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/unlimited_fmt_1.f08
Modified:
    trunk/gcc/testsuite/ChangeLog

Comment 5 Jerry DeLisle 2009-08-17 14:42:07 UTC
Completed on trunk 4.5.0