re PR fortran/35840 (ICE for character expression in I/O specifier)
authorMikael Morin <mikael.morin@tele2.fr>
Fri, 31 Oct 2008 15:56:21 +0000 (16:56 +0100)
committerMikael Morin <mikael@gcc.gnu.org>
Fri, 31 Oct 2008 15:56:21 +0000 (15:56 +0000)
commitd3d0b9e07f69bd21120ebdeac22d4e197b7dfd1c
tree811f4814607616ee07e17c7629a183aa38712469
parent0e6834af18d539e4615be54eb2f9262898add8b4
re PR fortran/35840 (ICE for character expression in I/O specifier)

2008-10-31  Mikael Morin  <mikael.morin@tele2.fr>

PR fortran/35840
* expr.c (gfc_reduce_init_expr): New function, containing checking code
from gfc_match_init_expr, so that checking can be deferred.
(gfc_match_init_expr): Use gfc_reduce_init_expr.
* io.c (check_io_constraints): Use gfc_reduce_init_expr instead of
checking that the expression is a constant.
* match.h (gfc_reduce_init_expr): Prototype added.

2008-10-31  Mikael Morin  <mikael.morin@tele2.fr>

PR fortran/35840
* gfortran.dg/write_check4.f90: New test.

From-SVN: r141497
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/io.c
gcc/fortran/match.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/write_check4.f90 [new file with mode: 0644]