Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

Unable to use access specifiers in submodule

$
0
0

Compiling the following code snippet:

module leader
      implicit none
      integer,private::rank
end module leader
submodule(leader) officer
      implicit none
      integer,private::file
end submodule officer

I get the following error:

error #6848: This attribute specification is valid only in the specification part of a module.   [PRIVATE]
      integer,private::file
--------------^

I think the standard allows this, am I writing something wrong or is this a bug?

Zone: 

Thread Topic: 

Bug Report

Viewing all articles
Browse latest Browse all 2583

Trending Articles



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