public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28585]  New: Fortran 2003: Support NEW_LINE intrinsic
@ 2006-08-03 15:11 tobias dot burnus at physik dot fu-berlin dot de
  2006-08-08  1:25 ` [Bug fortran/28585] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2006-08-03 15:11 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/28585] Fortran 2003: Support NEW_LINE intrinsic
  2006-08-03 15:11 [Bug fortran/28585] New: Fortran 2003: Support NEW_LINE intrinsic tobias dot burnus at physik dot fu-berlin dot de
@ 2006-08-08  1:25 ` pinskia at gcc dot gnu dot org
  2006-10-08 13:22 ` fxcoudert at gcc dot gnu dot org
  2006-10-22 12:27 ` fxcoudert at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-08  1:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-08-08 01:24 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-08-08 01:24:55
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28585


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/28585] Fortran 2003: Support NEW_LINE intrinsic
  2006-08-03 15:11 [Bug fortran/28585] New: Fortran 2003: Support NEW_LINE intrinsic tobias dot burnus at physik dot fu-berlin dot de
  2006-08-08  1:25 ` [Bug fortran/28585] " pinskia at gcc dot gnu dot org
@ 2006-10-08 13:22 ` fxcoudert at gcc dot gnu dot org
  2006-10-22 12:27 ` fxcoudert at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-08 13:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2006-10-08 13:21 -------
Subject: Bug 28585

Author: fxcoudert
Date: Sun Oct  8 13:21:42 2006
New Revision: 117555

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117555
Log:
        PR fortran/28585

        * intrinsic.c (add_functions): Add new_line Fortran 2003 intrinsic.
        * intrinsic.h: Add gfc_simplify_new_line and gfc_check_new_line
        prototypes.
        * check.c (gfc_check_new_line): New function.
        * simplify.c (gfc_simplify_new_line): New function.
        * intrinsic.texi: Document new_line intrinsic.

        * gfortran.dg/new_line.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/new_line.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/check.c
    trunk/gcc/fortran/intrinsic.c
    trunk/gcc/fortran/intrinsic.h
    trunk/gcc/fortran/intrinsic.texi
    trunk/gcc/fortran/simplify.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28585


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/28585] Fortran 2003: Support NEW_LINE intrinsic
  2006-08-03 15:11 [Bug fortran/28585] New: Fortran 2003: Support NEW_LINE intrinsic tobias dot burnus at physik dot fu-berlin dot de
  2006-08-08  1:25 ` [Bug fortran/28585] " pinskia at gcc dot gnu dot org
  2006-10-08 13:22 ` fxcoudert at gcc dot gnu dot org
@ 2006-10-22 12:27 ` fxcoudert at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-22 12:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from fxcoudert at gcc dot gnu dot org  2006-10-22 12:26 -------
Fixed in 4.2 and later, thanks to Tobias.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28585


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-22 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-03 15:11 [Bug fortran/28585] New: Fortran 2003: Support NEW_LINE intrinsic tobias dot burnus at physik dot fu-berlin dot de
2006-08-08  1:25 ` [Bug fortran/28585] " pinskia at gcc dot gnu dot org
2006-10-08 13:22 ` fxcoudert at gcc dot gnu dot org
2006-10-22 12:27 ` fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).