<?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 Error 6465...can't use parameter in array size? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-6465-can-t-use-parameter-in-array-size/m-p/859429#M68566</link>
    <description>&lt;P&gt;I am trying to convert some elderly COMPAQ vintage Fortran to compile under the Intel compiler, and VS 2008. After using the "Extract Compaq Visual FORTRAN Project Items" tool I get masses of compilation errors :-( &lt;BR /&gt;&lt;BR /&gt;The first set are of this form:&lt;/P&gt;
&lt;P&gt;In SOMESUB.FOR I have&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;INCLUDE 'PARAMS.FI'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;INCLUDE 'VALVE.FI'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;PARAMS.FI contains&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;PARAMETER (P_JWTVLV=600)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;VALVE.FI contains&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;STRUCTURE /NRTV_S/&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;INTEGER NVALVE(P_JWTVLV)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Compilation of SOMESUB.FOR fails with&lt;/P&gt;
&lt;P&gt;error #6465: Adjustable, assumed-size, or passed-length declarations are invalid in field declarations. [NVALVE]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any idea on cause/best solution? I can fix the compilation error by hard coding 600 into the declaration of NVALVE, but that's a pretty horrible thing to have to do.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2010 13:47:53 GMT</pubDate>
    <dc:creator>chris-sn</dc:creator>
    <dc:date>2010-03-29T13:47:53Z</dc:date>
    <item>
      <title>Error 6465...can't use parameter in array size?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-6465-can-t-use-parameter-in-array-size/m-p/859429#M68566</link>
      <description>&lt;P&gt;I am trying to convert some elderly COMPAQ vintage Fortran to compile under the Intel compiler, and VS 2008. After using the "Extract Compaq Visual FORTRAN Project Items" tool I get masses of compilation errors :-( &lt;BR /&gt;&lt;BR /&gt;The first set are of this form:&lt;/P&gt;
&lt;P&gt;In SOMESUB.FOR I have&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;INCLUDE 'PARAMS.FI'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;INCLUDE 'VALVE.FI'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;PARAMS.FI contains&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;PARAMETER (P_JWTVLV=600)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;VALVE.FI contains&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;STRUCTURE /NRTV_S/&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;INTEGER NVALVE(P_JWTVLV)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Compilation of SOMESUB.FOR fails with&lt;/P&gt;
&lt;P&gt;error #6465: Adjustable, assumed-size, or passed-length declarations are invalid in field declarations. [NVALVE]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any idea on cause/best solution? I can fix the compilation error by hard coding 600 into the declaration of NVALVE, but that's a pretty horrible thing to have to do.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2010 13:47:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-6465-can-t-use-parameter-in-array-size/m-p/859429#M68566</guid>
      <dc:creator>chris-sn</dc:creator>
      <dc:date>2010-03-29T13:47:53Z</dc:date>
    </item>
    <item>
      <title>Error 6465...can't use parameter in array size?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-6465-can-t-use-parameter-in-array-size/m-p/859430#M68567</link>
      <description>This should work, if P_JWTVLV is declared integer before assigning a value, and the files are included in the order you quoted. The f90 way would be&lt;BR /&gt;INTEGER, PARAMETER :: P_JWTVLV = 600&lt;BR /&gt;If you didn't give P_JWTVLV a type, you are running into non-support of a legacy pre-f77 version of PARAMETER.</description>
      <pubDate>Mon, 29 Mar 2010 15:38:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-6465-can-t-use-parameter-in-array-size/m-p/859430#M68567</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-03-29T15:38:12Z</dc:date>
    </item>
    <item>
      <title>Problem solved</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-6465-can-t-use-parameter-in-array-size/m-p/859431#M68568</link>
      <description>Whoops ... I just noticed the &lt;EM&gt;$IF DEFINED (OS_WINDOWS) &lt;/EM&gt;way back in the parameters include file. Having got rid of that malarkey (compiling on DOS is no longer a requirement !) I am down to two errors - woohoo!&lt;BR /&gt;&lt;BR /&gt;Thanks for the thought Tim!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Mar 2010 16:10:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-6465-can-t-use-parameter-in-array-size/m-p/859431#M68568</guid>
      <dc:creator>chris-sn</dc:creator>
      <dc:date>2010-03-29T16:10:46Z</dc:date>
    </item>
  </channel>
</rss>

