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