<?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 False negative in subroutine allocation in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143328#M17170</link>
    <description>&lt;P&gt;Why Inspector does not indicate an error when not deallocate a matrix in a subroutine?&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;   PROGRAM main_tst
      IMPLICIT NONE
      INTEGER, PARAMETER          :: n1 = 5000
      INTEGER, PARAMETER          :: n2 = 1000
      REAL   , ALLOCATABLE        :: mat(:,:)

      ALLOCATE(mat(n1, n2))
      mat = 5.
      CALL sbrt_tst(n1, n2, mat)
      WRITE(*,*) mat(1:5,1)
      DEALLOCATE(mat)
   END PROGRAM main_tst

   SUBROUTINE sbrt_tst(n1, n2, mat__in)
      INTEGER, INTENT(IN   ) :: n1
      INTEGER, INTENT(IN   ) :: n2
      REAL   , INTENT(INOUT) :: mat__in(n1, n2)

      REAL, ALLOCATABLE           :: mat_aux(:,:)

      ALLOCATE(mat_aux(n1, n2))
      mat_aux = n1*n2
      mat__in = mat__in + mat_aux
   END SUBROUTINE sbrt_tst
&lt;/PRE&gt;

&lt;P&gt;I compiled and ran this way:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ ifort -o ./main_tst ./main_tst.f90 -shared-intel -shared-libgcc -O0 -g
$ inspxe-cl -collect mi3 -r r000mi3 ./main_tst
&lt;/PRE&gt;

&lt;P&gt;The output was:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;5000005.       5000005.       5000005.       5000005.       5000005.

0 new problem(s) found&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;
	&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 14:12:47 GMT</pubDate>
    <dc:creator>Mattos__Alexandre</dc:creator>
    <dc:date>2018-02-23T14:12:47Z</dc:date>
    <item>
      <title>False negative in subroutine allocation</title>
      <link>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143328#M17170</link>
      <description>&lt;P&gt;Why Inspector does not indicate an error when not deallocate a matrix in a subroutine?&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;   PROGRAM main_tst
      IMPLICIT NONE
      INTEGER, PARAMETER          :: n1 = 5000
      INTEGER, PARAMETER          :: n2 = 1000
      REAL   , ALLOCATABLE        :: mat(:,:)

      ALLOCATE(mat(n1, n2))
      mat = 5.
      CALL sbrt_tst(n1, n2, mat)
      WRITE(*,*) mat(1:5,1)
      DEALLOCATE(mat)
   END PROGRAM main_tst

   SUBROUTINE sbrt_tst(n1, n2, mat__in)
      INTEGER, INTENT(IN   ) :: n1
      INTEGER, INTENT(IN   ) :: n2
      REAL   , INTENT(INOUT) :: mat__in(n1, n2)

      REAL, ALLOCATABLE           :: mat_aux(:,:)

      ALLOCATE(mat_aux(n1, n2))
      mat_aux = n1*n2
      mat__in = mat__in + mat_aux
   END SUBROUTINE sbrt_tst
&lt;/PRE&gt;

&lt;P&gt;I compiled and ran this way:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ ifort -o ./main_tst ./main_tst.f90 -shared-intel -shared-libgcc -O0 -g
$ inspxe-cl -collect mi3 -r r000mi3 ./main_tst
&lt;/PRE&gt;

&lt;P&gt;The output was:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;5000005.       5000005.       5000005.       5000005.       5000005.

0 new problem(s) found&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;
	&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 14:12:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143328#M17170</guid>
      <dc:creator>Mattos__Alexandre</dc:creator>
      <dc:date>2018-02-23T14:12:47Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143329#M17171</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Seems like&amp;nbsp;an issue. I'm going to file a bug report&lt;/P&gt;

&lt;P&gt;Thank you for reporting..&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 15:35:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143329#M17171</guid>
      <dc:creator>Kevin_O_Intel1</dc:creator>
      <dc:date>2018-02-23T15:35:03Z</dc:date>
    </item>
    <item>
      <title>Do you have any news about</title>
      <link>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143330#M17172</link>
      <description>&lt;P&gt;Do you have any news about this issue?&lt;/P&gt;

&lt;P&gt;Btw, my company has a paid license. Is there any other way to get more information about this bug report via the Online Service Center?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:14:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143330#M17172</guid>
      <dc:creator>Mattos__Alexandre</dc:creator>
      <dc:date>2018-03-07T20:14:09Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143331#M17173</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Yes. If you can file a support request for the Inspector product. Here is a link to an article that will assist you.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/how-to-create-a-support-request-at-online-service-center"&gt;https://software.intel.com/en-us/articles/how-to-create-a-support-request-at-online-service-center&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let them know you and about your forum post and also let them know that I had filed a bug report.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:35:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/False-negative-in-subroutine-allocation/m-p/1143331#M17173</guid>
      <dc:creator>Kevin_O_Intel1</dc:creator>
      <dc:date>2018-03-07T20:35:13Z</dc:date>
    </item>
  </channel>
</rss>

