This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35840] ICE for character expression in I/O specifier
- From: "mikael dot morin at tele2 dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Sep 2008 16:42:25 -0000
- Subject: [Bug fortran/35840] ICE for character expression in I/O specifier
- References: <bug-35840-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from mikael dot morin at tele2 dot fr 2008-09-14 16:42 -------
Created an attachment (id=16318)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16318&action=view)
proposed patch
The problem here is that the parser matches a general expression and has to
check later that it is an initialization expression.
I have taken the code in gfc_match_init_expr and put it in its own function
(gfc_reduce_init_expr) so that checking can be deferred.
Fixing the bug is then trivial.
This has just been regression tested.
Should I send this to the fortran mailing list ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35840