From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10934 invoked by alias); 1 Apr 2008 21:10:52 -0000 Received: (qmail 10911 invoked by uid 22791); 1 Apr 2008 21:10:51 -0000 X-Spam-Check-By: sourceware.org Received: from mx02.qsc.de (HELO mx02.qsc.de) (213.148.130.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 01 Apr 2008 21:10:32 +0000 Received: from archimedes.net-b.de (port-212-202-21-201.dynamic.qsc.de [212.202.21.201]) by mx02.qsc.de (Postfix) with ESMTP id 191B216C01F3; Tue, 1 Apr 2008 23:10:28 +0200 (CEST) Received: by archimedes.net-b.de (Postfix, from userid 1000) id B2B5D1568E72; Tue, 1 Apr 2008 23:10:28 +0200 (CEST) Date: Tue, 01 Apr 2008 21:10:00 -0000 From: Tobias Burnus To: Jerry DeLisle , gcc-patches@gcc.gnu.org, fortran@gcc.gnu.org Subject: Re: [patch, fortran]PR25829 Add support for F2003 I/O features Message-ID: <20080401211028.GA31075@net-b.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg00122.txt.bz2 > Please give it a spin and test if you can. Any test cases people are > willing to submit would be welcome. DECIMAL="comma" does not work properly: integer :: i real :: a(10) = [ (i*1.3, i=1,10) ] namelist /nm/ a write(*,nml=nm,decimal='comma') end This should print &nm a = 1,3; 2,6; ... but it prints: &nm a = 1,3, 2,6, ... * * * The following program should print: 1.3 4.0 5.0 5.0 7.0 0.0 but gfortran has: Fortran runtime error: Cannot match namelist object name implicit none integer :: i real :: a(6) = 0.0 character(len=30) :: str = '&nm a = 1,3; 4, 5; 5; 7; /' namelist /nm/ a read(str,nml=nm,decimal='comma') print *, a end * * * + notify_std (&dtp->common, GFC_STD_F2003, "DC or DP descriptor " Please use also in libgfortran the "Fortran 2003:" prefix. * * * The patch looks otherwise OK. It would be great if some others could do some tests or code review as well. The code is too big to quickly see whether everything is correct or whether checks are missing or ... Tobias, who is looking forward to the updated patch