<?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 The internal compiler error in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Coarray-Internal-compiler-error-Wrong-results/m-p/1039495#M112699</link>
    <description>&lt;P&gt;The internal compiler error is gone in 15.0.3, but the wrong results remain. However, the 16.0 beta works fine,so it looks as if this has already been fixed.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jun 2015 14:53:54 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2015-06-15T14:53:54Z</dc:date>
    <item>
      <title>Coarray - Internal compiler error / Wrong results</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Coarray-Internal-compiler-error-Wrong-results/m-p/1039494#M112698</link>
      <description>&lt;P&gt;Compiling this program with ifort version 15.0.1 gives me:&lt;/P&gt;

&lt;P&gt;testarray.f90: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.&amp;nbsp; Note: File and line given may not be explicit cause of this error.&lt;BR /&gt;
	compilation aborted for testarray.f90 (code 1)&lt;/P&gt;

&lt;P&gt;Here is the code:&lt;/P&gt;

&lt;P&gt;module test&lt;BR /&gt;
	&amp;nbsp; implicit none&lt;/P&gt;

&lt;P&gt;&amp;nbsp; contains&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; function sum_assumedshape(input, length) result(output)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; complex, dimension(:), intent(in)&amp;nbsp; :: input&lt;LI&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; complex&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :: output&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; integer, intent(in) :: length&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; integer :: i&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; output = cmplx(0.0, 0.0)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; do i = 1, length&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output = output + input(i)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; end do&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; end function&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; function sum_assumedsize(input, length) result(output)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; complex, dimension(length), intent(inout)&amp;nbsp; :: input&lt;/LI&gt;&lt;LI&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; complex&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;&amp;nbsp;&amp;nbsp; :: output&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; integer, intent(in) :: length&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; integer :: i&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; output = cmplx(0.0, 0.0)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; do i = 1, length&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output = output + input(i)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; end do&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; end function&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	end module&lt;BR /&gt;
	&amp;nbsp;&lt;/LI&gt;&lt;/P&gt;

&lt;P&gt;program sizevsshape&lt;BR /&gt;
	&amp;nbsp; use test&lt;BR /&gt;
	&amp;nbsp; implicit none&lt;/P&gt;

&lt;P&gt;&amp;nbsp; complex, allocatable, dimension(:) :: in[:]&lt;BR /&gt;
	&amp;nbsp; complex&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :: out &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; integer&amp;nbsp; :: i&lt;BR /&gt;
	&amp;nbsp; integer, parameter :: length = 4&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; allocate(in(length)&lt;LI&gt;)&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; in = (/(cmplx(real(i),0.0), i=1, length)/)&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; if(this_image() == 1) write(*,*) in&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; out = sum_assumedshape(in, length)&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; if(this_image() == 1) write(*,*) out&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; out = sum_assumedsize(in, length)&lt;/LI&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; if(this_image() == 1) write(*,*) out&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	end program&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;When I compile this with ifort 14. it works but the assumed size function&lt;/P&gt;

&lt;P&gt;gives me a wrong result.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;Jan&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 10:00:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Coarray-Internal-compiler-error-Wrong-results/m-p/1039494#M112698</guid>
      <dc:creator>Jan_W_2</dc:creator>
      <dc:date>2015-06-15T10:00:22Z</dc:date>
    </item>
    <item>
      <title>The internal compiler error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Coarray-Internal-compiler-error-Wrong-results/m-p/1039495#M112699</link>
      <description>&lt;P&gt;The internal compiler error is gone in 15.0.3, but the wrong results remain. However, the 16.0 beta works fine,so it looks as if this has already been fixed.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 14:53:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Coarray-Internal-compiler-error-Wrong-results/m-p/1039495#M112699</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-06-15T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Oh ok!
Thank you!</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Coarray-Internal-compiler-error-Wrong-results/m-p/1039496#M112700</link>
      <description>&lt;P&gt;Oh ok!&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 07:50:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Coarray-Internal-compiler-error-Wrong-results/m-p/1039496#M112700</guid>
      <dc:creator>Jan_W_2</dc:creator>
      <dc:date>2015-06-16T07:50:50Z</dc:date>
    </item>
  </channel>
</rss>

