From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17337 invoked by alias); 22 Jul 2008 17:48:05 -0000 Received: (qmail 17071 invoked by uid 48); 22 Jul 2008 17:47:18 -0000 Date: Tue, 22 Jul 2008 17:48:00 -0000 Message-ID: <20080722174718.17070.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/36895] Namelist writting to internal files: Control characters wrong? In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" 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: 2008-07/txt/msg01739.txt.bz2 ------- Comment #3 from burnus at gcc dot gnu dot org 2008-07-22 17:47 ------- > I will check on this later tonight or this week. I have wondered about that > comma myself. Thanks! I believe the comma should be valid, even though it is superfluous and "looks wrong". Thus it were nice if one could get rid of it, but only if it is not too much work and does not slow down the I/O. Regarding the line breaks: I think they are indeed wrong. At the moment I cannot come up with a good example how this can cause problems, but I'm sure one could construct one. Running the following program using NAG f95 gives the error: Invalid character ' ' in NAMELIST input Program terminated by I/O error on internal file Thus NAG f95 does not like the line break. (The program works in g95 and gfortran.) ---------------------- character(len=255) :: str(2) integer :: i, j(2) namelist /nm/i,j i = 44 j = 45 str(1) = ' &NM '//new_line('a')//' I= 1,' str(2) = ' J= 2*2 , /' read(str,nml=nm) print *, i, j end ---------------------- -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36895