<?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: Is StopPoint a reserved keyword? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290273#M156367</link>
    <description>&lt;P&gt;To emphasize: This is the case with fixed form! In fixed form spaces (except in strings) are irrelevant. So, as GVautier indicates, the compiler recognizes the word STOPPOINT as a statement "STOP POINT".&lt;/P&gt;
&lt;P&gt;One solution: use free form&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 07:38:36 GMT</pubDate>
    <dc:creator>Arjen_Markus</dc:creator>
    <dc:date>2021-06-16T07:38:36Z</dc:date>
    <item>
      <title>Is StopPoint a reserved keyword?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290166#M156363</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is talked at here&amp;nbsp;&lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/Trying-to-rebuild-application-with-bat-files/td-p/1287156" target="_blank" rel="noopener"&gt;Trying to rebuild application with .bat files - Intel Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To make it simple, I made this small program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;      !e5082.for
      INTEGER STOPPOINT
      DIMENSION STOPPOINT(:,:,:)
      ALLOCATABLE :: STOPPOINT
      integer ALLOERR
      integer I
      ALLOCATE (STOPPOINT(1:4,1:3,0:5),STAT=ALLOERR)
      I=1
      STOPPOINT(1:4,1:3,0:I)=0
      
      end&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compile it gives an error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;D:\r&amp;gt;ifort -c e5082.for
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.1 Build 20201112_000000
Copyright (C) 1985-2020 Intel Corporation.  All rights reserved.

e5082.for(8): error #5082: Syntax error, found '=' when expecting one of: :: ) , : * &amp;lt;END-OF-STATEMENT&amp;gt; ; . % (/ + - ] /) . ' ** / // &amp;gt; ...
      STOPPOINT(1:4,1:3,0:I)=0
----------------------------^
e5082.for(8): error #6911: The syntax of this substring is invalid.   [POINT]
      STOPPOINT(1:4,1:3,0:I)=0
----------^
compilation aborted for e5082.for (code 1)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if I change the variable name from StopPoint to&amp;nbsp;STONT, the compiler then has no complaint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;      INTEGER STONT
      DIMENSION STONT(:,:,:)
      ALLOCATABLE :: STONT
      integer ALLOERR
      integer I
      ALLOCATE (STONT(1:4,1:3,0:5),STAT=ALLOERR)
      I=1
      STONT(1:4,1:3,0:I)=0
      
      end&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem seems that you can not use STOP to start a variable name. STOPa has the same error.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Cean&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 02:39:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290166#M156363</guid>
      <dc:creator>cean</dc:creator>
      <dc:date>2021-06-16T02:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is StopPoint a reserved keyword?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290266#M156366</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;STOP is a statement so the compiler complains from POINT&lt;/P&gt;
&lt;P&gt;Syntax of STOP statement&lt;/P&gt;
&lt;P&gt;STOP [string]&lt;/P&gt;
&lt;P&gt;In Fortran there is no reserved word but the syntax implies the meaning so a line beginning by STOP is a STOP statement.&lt;/P&gt;
&lt;P&gt;Another exemple&lt;/P&gt;
&lt;P&gt;DO I=1.2&lt;/P&gt;
&lt;P&gt;is legal (affecting 1.2 to DOI variable because spaces are ignored)&lt;/P&gt;
&lt;P&gt;DO I=1,2&lt;/P&gt;
&lt;P&gt;is a loop statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 07:32:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290266#M156366</guid>
      <dc:creator>GVautier</dc:creator>
      <dc:date>2021-06-16T07:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is StopPoint a reserved keyword?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290273#M156367</link>
      <description>&lt;P&gt;To emphasize: This is the case with fixed form! In fixed form spaces (except in strings) are irrelevant. So, as GVautier indicates, the compiler recognizes the word STOPPOINT as a statement "STOP POINT".&lt;/P&gt;
&lt;P&gt;One solution: use free form&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 07:38:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290273#M156367</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-06-16T07:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is StopPoint a reserved keyword?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290466#M156380</link>
      <description>&lt;P&gt;I do not agree that this is a fixed vs. free form issue. Indeed, I wrote about this topic in&amp;nbsp;&lt;A href="https://stevelionel.com/drfortran/2020/06/07/doctor-fortran-in-no-reserve/" target="_blank"&gt;Doctor Fortran in "No Reserve" - Doctor Fortran (stevelionel.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The compiler has ways of disambiguating statements that start with a statement keyword but aren't those statements. In this case, the appearance of the equal sign or parenthesis is a clue that this is NOT a STOP statement. (I spent a lot of time in the VAX FORTRAN statement classifier code.)&lt;/P&gt;
&lt;P&gt;My guess is that when Intel implemented the Fortran 2018 enhancements to STOP to add the optional ", QUIET=expression", the programmer was not careful enough. This is a compiler bug.&lt;/P&gt;
&lt;P&gt;That said, fixed form should be avoided on general principles in new code.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 19:44:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290466#M156380</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2021-06-16T19:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is StopPoint a reserved keyword?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290500#M156381</link>
      <description>&lt;P&gt;To be clear the error only occurs in fixed form is compiles OK in freeform. It seems the Fortran parser is getting confused.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 22:32:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-StopPoint-a-reserved-keyword/m-p/1290500#M156381</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2021-06-16T22:32:11Z</dc:date>
    </item>
  </channel>
</rss>

