From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17141 invoked by alias); 3 Aug 2006 15:11:07 -0000 Received: (qmail 17005 invoked by uid 48); 3 Aug 2006 15:10:57 -0000 Date: Thu, 03 Aug 2006 15:11:00 -0000 Subject: [Bug fortran/28585] New: Fortran 2003: Support NEW_LINE intrinsic X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tobias dot burnus at physik dot fu-berlin dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-08/txt/msg00155.txt.bz2 List-Id: Currently, gfortran does not support the NEW_LINE intrinsic. Expected: It is supported. Testcase: ------------- program newline implicit none WRITE(*,'(A)') 'This is record 1.'//NEW_LINE('A')//'This is record 2.' end program newline ------------- >>From Fortran 2003 standard: 13.7.85 NEW LINE (A) Description. Returns a newline character. Class. Inquiry function. Argument. A shall be of type character. It may be a scalar or an array. Result Characteristics. Character scalar of length one with the same kind type parameter as A. Result Value. Case (i): If A is of the default character type and the character in position of the ASCII collating sequence is representable in the default character set, then the result is ACHAR(10). Case (ii): If A is of the ASCII character type or the ISO 10646 character type, then the result is CHAR(10,KIND(A)). Case (iii): Otherwise, the result is a processor-dependent character that represents a new line in output to files connected for formatted stream output if there is such a character. Case (iv): Otherwise, the result is the blank character. -- Summary: Fortran 2003: Support NEW_LINE intrinsic Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tobias dot burnus at physik dot fu-berlin dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28585