<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Steve in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-sub-sub-submodules/m-p/1094588#M125130</link>
    <description>&lt;P&gt;Steve&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;

&lt;P&gt;Nick&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2016 13:40:21 GMT</pubDate>
    <dc:creator>Nicholas_B_</dc:creator>
    <dc:date>2016-11-22T13:40:21Z</dc:date>
    <item>
      <title>Problem with sub sub submodules</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-sub-sub-submodules/m-p/1094586#M125128</link>
      <description>&lt;P&gt;There seems to be a problem with sub sub submodules in Intel Fortran 17.0.1 (example code attached):&lt;/P&gt;

&lt;P&gt;ifort -c mtop.f90&lt;BR /&gt;
	ifort -c submod.f90&lt;BR /&gt;
	ifort -c subsubmod.f90&lt;BR /&gt;
	ifort -c subsubsubmod.f90&lt;BR /&gt;
	subsubsubmod.f90(1): error #5082: Syntax error, found ':' when expecting one of: )&lt;BR /&gt;
	submodule (mtop:submod:subsubmod) subsubsubmod&lt;BR /&gt;
	----------------------^&lt;BR /&gt;
	subsubsubmod.f90(5): error #6116: A separate module procedure must only be defined in a module or a submodule.&amp;nbsp;&amp;nbsp; [SUB3]&lt;BR /&gt;
	module subroutine sub3&lt;BR /&gt;
	------------------^&lt;BR /&gt;
	compilation aborted for subsubsubmod.f90 (code 1)&lt;BR /&gt;
	bash-4.1$ ifort -v&lt;BR /&gt;
	ifort version 17.0.1&lt;/P&gt;

&lt;P&gt;gfortran 6.2.1 seems to be OK:&lt;/P&gt;

&lt;P&gt;gfortran -c mtop.f90&lt;BR /&gt;
	gfortran -c submod.f90&lt;BR /&gt;
	gfortran -c subsubmod.f90&lt;BR /&gt;
	gfortran -c subsubsubmod.f90&lt;BR /&gt;
	gfortran --version&lt;BR /&gt;
	GNU Fortran (GCC) 6.2.1 20160916 (Red Hat 6.2.1-3)&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 10:07:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-sub-sub-submodules/m-p/1094586#M125128</guid>
      <dc:creator>Nicholas_B_</dc:creator>
      <dc:date>2016-11-22T10:07:35Z</dc:date>
    </item>
    <item>
      <title>Intel Fortran is correct,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-sub-sub-submodules/m-p/1094587#M125129</link>
      <description>&lt;P&gt;Intel Fortran is correct, gfortran is wrong is not rejecting the source. Your syntax is incorrect.&lt;/P&gt;

&lt;P&gt;The syntax is:&lt;/P&gt;

&lt;P&gt;R1117 submodule-stmt is SUBMODULE ( parent-identifier ) submodule-name&lt;BR /&gt;
	R1118 parent-identifier is ancestor-module-name [ : parent-submodule-name ]&lt;/P&gt;

&lt;P&gt;You don't give the whole tree, just one of the parent's descendants. The correct line would be:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;submodule (mtop:subsubmod) subsubsubmod&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 13:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-sub-sub-submodules/m-p/1094587#M125129</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-11-22T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Steve</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-sub-sub-submodules/m-p/1094588#M125130</link>
      <description>&lt;P&gt;Steve&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;

&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 13:40:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-sub-sub-submodules/m-p/1094588#M125130</guid>
      <dc:creator>Nicholas_B_</dc:creator>
      <dc:date>2016-11-22T13:40:21Z</dc:date>
    </item>
  </channel>
</rss>

