This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/35840] ICE for character expression in I/O specifier



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]