From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27226 invoked by alias); 18 Oct 2008 15:14:00 -0000 Received: (qmail 27103 invoked by uid 48); 18 Oct 2008 15:12:39 -0000 Date: Sat, 18 Oct 2008 15:14:00 -0000 Message-ID: <20081018151239.27102.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/37707] Namelist read of array of derived type incorrect 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-10/txt/msg01210.txt.bz2 ------- Comment #18 from burnus at gcc dot gnu dot org 2008-10-18 15:12 ------- I think your program is valid. For "tag = list of strings" in a namelist the quotes are required and delim= is ignored for namelist read/write. See: "10.10.1.3 Namelist group object list items" [...] "When the next effective item is of type character, the input form consists of a delimited sequence of zero or more rep-char s whose kind type parameter is implied by the kind of the corresponding list item. Such a sequence may be continued from the end of one record to the beginning of the next record, but the end of record shall not occur between a 1 doubled apostrophe in an apostrophe-delimited sequence, nor between a doubled quote in a quote-delimited sequence. The end of the record does not cause a blank or any other character to become part of the sequence. The sequence may be continued on as many records as needed. The characters blank, comma, and slash may appear in such character sequences." "NOTE 10.35 A character sequence corresponding to a namelist input item of character type shall be delimited either with apostrophes or with quotes. The delimiter is required to avoid ambiguity between undelimited character sequences and object names. The value of the DELIM= specifier, if any, in the OPEN statement for an external file is ignored during namelist input (9.4.5.6)." -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707