Commit 4ff89fcb by Tobias Burnus Committed by Tobias Burnus

re PR fortran/52335 (I/O: -std=f95 rejects valid DELIM= in OPEN)

2012-02-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52335
        * io.c (gfc_match_open): Remove bogus F2003 DELIM= check.

2012-02-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52335
        * gfortran.dg/io_constraints_10.f90: New.

From-SVN: r184485
parent 219db888
2012-02-22 Tobias Burnus <burnus@net-b.de>
PR fortran/52335
* io.c (gfc_match_open): Remove bogus F2003 DELIM= check.
2012-02-18 Tobias Burnus <burnus@net-b.de> 2012-02-18 Tobias Burnus <burnus@net-b.de>
PR fortran/52295 PR fortran/52295
......
...@@ -1947,10 +1947,6 @@ gfc_match_open (void) ...@@ -1947,10 +1947,6 @@ gfc_match_open (void)
/* Checks on the DELIM specifier. */ /* Checks on the DELIM specifier. */
if (open->delim) if (open->delim)
{ {
if (gfc_notify_std (GFC_STD_F2003, "Fortran 2003: DELIM= at %C "
"not allowed in Fortran 95") == FAILURE)
goto cleanup;
if (open->delim->expr_type == EXPR_CONSTANT) if (open->delim->expr_type == EXPR_CONSTANT)
{ {
static const char *delim[] = { "APOSTROPHE", "QUOTE", "NONE", NULL }; static const char *delim[] = { "APOSTROPHE", "QUOTE", "NONE", NULL };
......
2012-02-22 Tobias Burnus <burnus@net-b.de>
PR fortran/52335
* gfortran.dg/io_constraints_10.f90: New.
2012-02-22 Ulrich Weigand <ulrich.weigand@linaro.org> 2012-02-22 Ulrich Weigand <ulrich.weigand@linaro.org>
* lib/target-supports.exp (check_effective_target_vect_condition): * lib/target-supports.exp (check_effective_target_vect_condition):
......
! { dg-do compile }
! { dg-options "-std=f95" }
!
! PR fortran/52335
!
integer :: lun
character(len=20) :: str
! VALID Fortran 95:
open(unit=lun,file=str,delim='apostrophe',status='old')
inquire(lun, delim=str)
! Fortran 2003:
write(*,*, delim='apostrophe') 'a' ! { dg-error "Fortran 2003: DELIM= at .1. not allowed in Fortran 95" }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment