thiagotei / rose

A release version of ROSE that passes all regression tests
http://rosecompiler.org
Other
0 stars 0 forks source link

.rmod missing Use statements #2

Open thiagotei opened 7 years ago

thiagotei commented 7 years ago

When the Use is inside a subroutine it doesn't show up in the .rmod generated by roseCompiler. I've seen some bugs raise by function fixup_forward_type_declarations that might be related to this.

For instance:

Module ModMPI
CONTAINS
    subroutine SRTest1(region, gridID)
    USE ModDataStruct
        type(t_region), pointer :: region
        integer :: gridID

        type(t_grid), pointer :: grid
        type(t_mixt_input), pointer :: input

        grid => region%grid(gridID)
        input => grid%input

    end subroutine SRTest1

End Module ModMPI

The correspondent modmpi.rmod doesn't include the Use:


! =================================================================================== 
! <<Automatically generated for Rose Fortran Separate Compilation, DO NOT MODIFY IT>> 
! =================================================================================== 

MODULE ModMPI
CONTAINS
SUBROUTINE SRTest1(region,gridID)
TYPE ( t_region ) , POINTER :: region
INTEGER :: gridID
TYPE ( t_grid ) , POINTER :: grid
TYPE ( t_mixt_input ) , POINTER :: input
END SUBROUTINE SRTest1

END MODULE ModMPI

I don't now yet how this .rmod is used or defined. It says generated by Rose.