This code fails to parse (analyze):
==============
MODULE testa
CONTAINS
SUBROUTINE f(arga)
INTEGER :: arga
CONTAINS
SUBROUTINE subf(argx)
INTEGER :: argx
END SUBROUTINE subf
END SUBROUTINE f
END MODULE testa
==============
The reason is that at block_statements.py:624 it is assumed that after the
filter_stmts function on line 620 is executed, there are no blank lines or
comments between the 'CONTAINS' and the 'END SUBROUTINE f' line.
see attached file for my proposed patch - I didn't dare to commit to mercurial
yet, will do it myself once I'm feeling more comfortable, besides.. maybe my
fix sucks:
Original issue reported on code.google.com by omar.aw...@gmail.com on 30 Aug 2010 at 8:16
Original issue reported on code.google.com by
omar.aw...@gmail.com
on 30 Aug 2010 at 8:16Attachments: