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


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