Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

should this give a compile error?

$
0
0
module santa
    implicit none
    interface
        module subroutine rudolph(nose)
        end subroutine rudolph
    end interface
end module santa

This compiles just fine by default options. If you set for warnings about undeclared variables you do get a warning. To my thinking (which may be wrong) the inheritance from the parent module should mean that rudolph's nose should have an explicit type in Santa's module.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>