Bug 20883 - unassigned integer used as format
Summary: unassigned integer used as format
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: ---
Assignee: fengwang
URL:
Keywords: accepts-invalid
Depends on:
Blocks:
 
Reported: 2005-04-08 16:01 UTC by Joost VandeVondele
Modified: 2005-07-07 09:31 UTC (History)
1 user (show)

See Also:
Host:
Target: i686-pc-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-05-19 17:00:28


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joost VandeVondele 2005-04-08 16:01:18 UTC
The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95'

write (*,i0)i
end
Comment 2 GCC Commits 2005-06-01 03:44:50 UTC
Subject: Bug 20883

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	fengwang@gcc.gnu.org	2005-06-01 03:44:43

Modified files:
	gcc/fortran    : ChangeLog io.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gfortran.dg: assign_2.f90 
Added files:
	gcc/testsuite/gfortran.dg: assign_4.f90 

Log message:
	2005-06-01  Feng Wang  <fengwang@nudt.edu.cn>
	
	PR fortran/20883
	* fortran/io.c (resolve_tag): Fix error message.
	
	2005-06-01  Feng Wang  <fengwang@nudt.edu.cn>
	
	PR fortran/20883
	* gfortran/assign_4.f90: New test.
	* gfortran/assign_2.f90: Change compile to run.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.446&r2=1.447
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/io.c.diff?cvsroot=gcc&r1=1.24&r2=1.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5569&r2=1.5570
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/assign_4.f90.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/assign_2.f90.diff?cvsroot=gcc&r1=1.1&r2=1.2

Comment 3 fengwang 2005-07-07 09:31:51 UTC
Fixed.