Currently, pp_ser insert USEstatement just before it finds IMPLICIT NONE
It can cause problem in the following example:
MODULE dummy
CONTAINS
SUBROUTINE a()
IMPLICIT NONE
!$ser data ...
END SUBROUTINE a
SUBROUTINE b()
IMPLICIT NONE
!$ser data ...
END SUBROUTINE b
END MODULE
In this case, the USEstatement will be added just before the IMPLICIT NONEin subroutine a()but nothing will be added in subroutine b()
The USEstatement should always be added at the beginning of the MODULEif it is a module
Currently,
pp_serinsertUSEstatement just before it findsIMPLICIT NONEIt can cause problem in the following example:
In this case, the
USEstatement will be added just before theIMPLICIT NONEin subroutinea()but nothing will be added in subroutineb()The
USEstatement should always be added at the beginning of theMODULEif it is a module