[Bug fortran/35840] ICE for character expression in I/O specifier
mikael at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 31 15:59:00 GMT 2008
------- Comment #19 from mikael at gcc dot gnu dot org 2008-10-31 15:57 -------
Subject: Bug 35840
Author: mikael
Date: Fri Oct 31 15:56:21 2008
New Revision: 141497
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141497
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/write_check4.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/fortran/io.c
trunk/gcc/fortran/match.h
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35840
More information about the Gcc-bugs
mailing list