<?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 If I understand your program in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950219#M92027</link>
    <description>&lt;P&gt;If I understand your program correctly, it was something like this:&lt;/P&gt;
&lt;P&gt;module foo&lt;BR /&gt;integer, parameter :: limit=25&lt;BR /&gt;integer :: outer_limit = 10&lt;BR /&gt;end module foo&lt;BR /&gt;program main&lt;BR /&gt;use foo, only: limit =&amp;gt; outer_limit&lt;BR /&gt;print *, limit&amp;nbsp;&amp;nbsp; !! prints 10 &lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;Interestingly enough, this is legal.&amp;nbsp; There is a lot of leeway in renaming variables from modules, including reusing names that exist in the module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2013 11:26:31 GMT</pubDate>
    <dc:creator>Lorri_M_Intel</dc:creator>
    <dc:date>2013-10-08T11:26:31Z</dc:date>
    <item>
      <title>Renaming of module variables to existing variable name does *not* produce an error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950218#M92026</link>
      <description>&lt;P&gt;I accedentally renamed a module variable (a parameter actually) to a name that also existed in the same module; I guess&amp;nbsp;this should have produced an error, but it didn't.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 11:12:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950218#M92026</guid>
      <dc:creator>Espen_M_</dc:creator>
      <dc:date>2013-10-08T11:12:11Z</dc:date>
    </item>
    <item>
      <title>If I understand your program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950219#M92027</link>
      <description>&lt;P&gt;If I understand your program correctly, it was something like this:&lt;/P&gt;
&lt;P&gt;module foo&lt;BR /&gt;integer, parameter :: limit=25&lt;BR /&gt;integer :: outer_limit = 10&lt;BR /&gt;end module foo&lt;BR /&gt;program main&lt;BR /&gt;use foo, only: limit =&amp;gt; outer_limit&lt;BR /&gt;print *, limit&amp;nbsp;&amp;nbsp; !! prints 10 &lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;Interestingly enough, this is legal.&amp;nbsp; There is a lot of leeway in renaming variables from modules, including reusing names that exist in the module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 11:26:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950219#M92027</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2013-10-08T11:26:31Z</dc:date>
    </item>
    <item>
      <title>I did not infer from the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950220#M92028</link>
      <description>&lt;P&gt;I did not infer from the original description that the USE statement should contain a "only:" clause. Removing that from Lorri's test program and compiling with the 14.0.0.103 compiler&amp;nbsp;gives the helpful message&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[fortran]only.f90(6): error #7837: Two or more accessible entities, other than generic interfaces,&lt;BR /&gt;may have the same name only if the name is not used to refer to an entity in the scoping unit. [LIMIT]&lt;BR /&gt;use foo, limit =&amp;gt; outer_limit&lt;/P&gt;
&lt;P&gt;[/fortran]&lt;/P&gt;
&lt;P&gt;A specific code example from the OP would be helpful; in particular, the use of the PARAMETER attribute needs to be clarified.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 13:33:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950220#M92028</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-10-08T13:33:00Z</dc:date>
    </item>
    <item>
      <title>Your example is spot on :)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950221#M92029</link>
      <description>&lt;P&gt;Your example has an ONLY clause which makes it work, I didn't have that.&lt;/P&gt;
&lt;P&gt;Do you mean that this is legal according to the sandard, or according to the compiler? It seems strange if it was allowed in the standard as it produces ambiguities unless the renaming happens after an ONLY clause...&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 13:35:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950221#M92029</guid>
      <dc:creator>Espen_M_</dc:creator>
      <dc:date>2013-10-08T13:35:00Z</dc:date>
    </item>
    <item>
      <title>mecej4:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950222#M92030</link>
      <description>&lt;P&gt;&lt;A href="http://software.intel.com/en-us/user/9972"&gt;mecej4&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;Lorri's example is essentially similar to mine, except for her&amp;nbsp;ONLY clause.&lt;/P&gt;
&lt;P&gt;I did not get that error message. I'm using the XE 2013 compiler without SP1&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 13:42:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950222#M92030</guid>
      <dc:creator>Espen_M_</dc:creator>
      <dc:date>2013-10-08T13:42:59Z</dc:date>
    </item>
    <item>
      <title>Please show us an example</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950223#M92031</link>
      <description>&lt;P&gt;Please show us an example that gets the error. Feel free to modify Lorri's example to match yours.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 13:58:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950223#M92031</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-10-08T13:58:32Z</dc:date>
    </item>
    <item>
      <title>module foointeger, parameter</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950224#M92032</link>
      <description>&lt;P&gt;module foo&lt;BR /&gt;integer, parameter :: limit=25&lt;BR /&gt;integer :: outer_limit = 10&lt;BR /&gt;end module foo&lt;BR /&gt;program main&lt;BR /&gt;use foo, limit =&amp;gt; outer_limit&amp;nbsp;&amp;nbsp;&amp;nbsp; !no 'only:'&lt;BR /&gt;print *, limit&amp;nbsp;&amp;nbsp; !! prints 25&lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;This&amp;nbsp;program induces&amp;nbsp;the&amp;nbsp;assumed bug (i.e. that no error is reported) for me.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 17:45:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950224#M92032</guid>
      <dc:creator>Espen_M_</dc:creator>
      <dc:date>2013-10-08T17:45:38Z</dc:date>
    </item>
    <item>
      <title>The above sample gives "error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950225#M92033</link>
      <description>&lt;P&gt;The above sample gives "error #7837: Two or more accessible entities, other than generic interfaces, may have the same name only if the name is not used to refer to an entity in the scoping unit. [LIMIT]&amp;nbsp;compilation aborted for C:\Users\An...."&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:40:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950225#M92033</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-10-09T07:40:28Z</dc:date>
    </item>
    <item>
      <title>Quote:app4619 wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950226#M92034</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;app4619 wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The above sample gives "error #7837: Two or more accessible entities, other than generic interfaces, may have the same name only if the name is not used to refer to an entity in the scoping unit. [LIMIT]&amp;nbsp;compilation aborted for C:\Users\An...."&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Strange, but I don't get that message... Could it be because I don't have the latest SP?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:51:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950226#M92034</guid>
      <dc:creator>Espen_M_</dc:creator>
      <dc:date>2013-10-09T07:51:09Z</dc:date>
    </item>
    <item>
      <title>Dunno, I used "Compiling with</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950227#M92035</link>
      <description>&lt;P&gt;Dunno, I used "Compiling with Intel(R) Visual Fortran Compiler XE 13.1.3.198 [IA-32]" &amp;nbsp;what level are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 08:30:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950227#M92035</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-10-09T08:30:07Z</dc:date>
    </item>
    <item>
      <title>I went back as far as 12.1</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950228#M92036</link>
      <description>&lt;P&gt;I went back as far as 12.1 and still saw the error. Please show us a full build log (command line best, but buildlog.htm from VS would do) showing what you saw.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 14:43:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950228#M92036</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-10-09T14:43:06Z</dc:date>
    </item>
    <item>
      <title>I guess there isn't much to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950229#M92037</link>
      <description>&lt;P&gt;I guess there isn't much to see in the build log as nothing in particular is&amp;nbsp;reported. The only problem is that the result, i.e. when printing the value is wrong. The version is 13.0.1.119 [IA-32]&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 17:39:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950229#M92037</guid>
      <dc:creator>Espen_M_</dc:creator>
      <dc:date>2013-10-10T17:39:53Z</dc:date>
    </item>
    <item>
      <title>The buildlog will among other</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950230#M92038</link>
      <description>&lt;P&gt;The buildlog will among other things shown which options were used to allow someone else to try the replicate the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 22:34:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950230#M92038</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-10-10T22:34:46Z</dc:date>
    </item>
    <item>
      <title>Here is the BuildLog.htm from</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950231#M92039</link>
      <description>&lt;P&gt;Here is the BuildLog.htm from a build in debug config. (had to rename it to upload)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 17:13:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950231#M92039</guid>
      <dc:creator>Espen_M_</dc:creator>
      <dc:date>2013-10-14T17:13:44Z</dc:date>
    </item>
    <item>
      <title>Please attach the source file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950232#M92040</link>
      <description>&lt;P&gt;Please attach the source file you used.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 17:38:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Renaming-of-module-variables-to-existing-variable-name-does-not/m-p/950232#M92040</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-10-14T17:38:32Z</dc:date>
    </item>
  </channel>
</rss>

