<?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 Re: Can't use 2D arrays that start with &amp;quot;stop&amp;quot; in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356364#M159760</link>
    <description>&lt;P&gt;I suspect that the forum software stripped leading blanks from the lines of the source code. I added six leading blanks to each line, retaining the file name with a ".f" suffix, and the OneAPI compilers displayed the errors reported by the OP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that this is a parsing error in the latest version of the compiler (Ifort and Ifx). Ifort&amp;nbsp;19.1.3.311 on Windows compiled the example code without complaints.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 14:28:06 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2022-02-01T14:28:06Z</dc:date>
    <item>
      <title>Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356353#M159758</link>
      <description>&lt;P&gt;I was trying to build old code with&amp;nbsp;ifort version 2021.5.0 and got a strange syntax error. Here it is reduced to a minimal example:&lt;/P&gt;
&lt;PRE&gt;program example&lt;BR /&gt;implicit none&lt;BR /&gt;integer stopfoo(1,1)&lt;BR /&gt;stopfoo(1,1) = 1&lt;BR /&gt;end&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; When I try to compile it,&lt;/P&gt;
&lt;PRE&gt;$ ifort example.f&lt;BR /&gt;example.f(4): error #5082: Syntax error, found '=' when expecting one of: :: ) , : * &amp;lt;END-OF-STATEMENT&amp;gt; ; . % (/ + - ] /) . ' ** / // &amp;gt; ...&lt;BR /&gt;      stopfoo(1,1) = 1&lt;BR /&gt;-------------------^&lt;BR /&gt;example.f(4): error #6404: This name does not have a type, and must have an explicit type. [FOO]&lt;BR /&gt;      stopfoo(1,1) = 1&lt;BR /&gt;----------^&lt;BR /&gt;example.f(4): error #6259: This array or function or substring is invalid in constant expressions. [FOO]&lt;BR /&gt;      stopfoo(1,1) = 1&lt;BR /&gt;----------^&lt;BR /&gt;compilation aborted for example.f (code 1)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;So it seems that the statement was parsed as a stop statement, that is&amp;nbsp;&lt;FONT face="courier new,courier"&gt;stop foo(1,1) = 1&lt;/FONT&gt;, which is illegal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this example compiles without complaint with ifort version 17.0.1, the error doesn't happen for a 1D array, and other keywords don't seem to trigger the error, for example, &lt;FONT face="courier new,courier"&gt;iffoo(1,1) = 1&lt;/FONT&gt; is OK (I haven't tried every keyword yet, though). I don't know if this is a bug, or if the new compiler started to enforce some obscure edge case of Fortran parsing. &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 13:50:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356353#M159758</guid>
      <dc:creator>ITUB</dc:creator>
      <dc:date>2022-02-01T13:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356357#M159759</link>
      <description>&lt;P&gt;Your source file seems to be fixed form - or is interpreted as fixed form - judging from the extension .f. That means that spaces outside strings are considered irrelevant. It is therefore quite possible that the compiler sees a STOP statement instead of an assignment. Clearly an error in the compiler. You could use free form instead to avoid the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 14:00:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356357#M159759</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2022-02-01T14:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356364#M159760</link>
      <description>&lt;P&gt;I suspect that the forum software stripped leading blanks from the lines of the source code. I added six leading blanks to each line, retaining the file name with a ".f" suffix, and the OneAPI compilers displayed the errors reported by the OP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that this is a parsing error in the latest version of the compiler (Ifort and Ifx). Ifort&amp;nbsp;19.1.3.311 on Windows compiled the example code without complaints.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 14:28:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356364#M159760</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2022-02-01T14:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356365#M159761</link>
      <description>&lt;P&gt;It would not astonish me if this bug was introduced when ifort added support for Fortran 2018's changes to STOP.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 14:26:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356365#M159761</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2022-02-01T14:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356369#M159764</link>
      <description>&lt;P&gt;Take a look here &lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290166" target="_blank"&gt;https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290166&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 14:37:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356369#M159764</guid>
      <dc:creator>GVautier</dc:creator>
      <dc:date>2022-02-01T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356371#M159765</link>
      <description>&lt;P&gt;Agreed.&amp;nbsp; I'll open a bug report on this.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 14:42:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356371#M159765</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2022-02-01T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356373#M159766</link>
      <description>&lt;P&gt;Thanks, everyone for the quick replies! Yes, my code was indented six spaces but they were stripped when pasting into the forum, sorry about the confusion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also confirmed that I don't see this issue with free form. Another incentive to modernize this legacy code, perhaps! &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 14:44:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356373#M159766</guid>
      <dc:creator>ITUB</dc:creator>
      <dc:date>2022-02-01T14:44:49Z</dc:date>
    </item>
    <item>
      <title>Re:Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356405#M159772</link>
      <description>&lt;P&gt;Bug ID CMPLRLLVM-34887&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2022 17:21:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356405#M159772</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2022-02-01T17:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356569#M159799</link>
      <description>&lt;P&gt;I don't know how .f files are meant to be processed (never used them), but it appears that the file is being assumed to be a fixed format (.for) file.&lt;/P&gt;
&lt;P&gt;Changing the name to .f90 extension compiles properly, as expected for a free format code.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 01:40:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356569#M159799</guid>
      <dc:creator>DavidWhite</dc:creator>
      <dc:date>2022-02-02T01:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356705#M159806</link>
      <description>&lt;P&gt;.f and .for are assumed to be fixed-format.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 14:35:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1356705#M159806</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2022-02-02T14:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use 2D arrays that start with "stop"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1414006#M162768</link>
      <description>&lt;P&gt;The fix is in the upcoming oneAPI 2022.3 release.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 16:35:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-use-2D-arrays-that-start-with-quot-stop-quot/m-p/1414006#M162768</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2022-09-11T16:35:53Z</dc:date>
    </item>
  </channel>
</rss>

