<?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: Bug report: nested implied-do initialization in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-report-nested-implied-do-initialization/m-p/1205812#M151566</link>
    <description>&lt;P&gt;I agree that this is valid source - NAG Fortran also compiles it without error. I checked with the standard and there's nothing wrong with U(J) as a &lt;EM&gt;scalar-int-expr&lt;/EM&gt; in an &lt;EM&gt;ac-implied-do-control&lt;/EM&gt;&amp;nbsp;(R775 in F2018, R474 in F2008.) Please submit a bug report through the Intel Online Service Center.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2020 15:10:21 GMT</pubDate>
    <dc:creator>Steve_Lionel</dc:creator>
    <dc:date>2020-09-01T15:10:21Z</dc:date>
    <item>
      <title>Bug report: nested implied-do initialization</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-report-nested-implied-do-initialization/m-p/1205680#M151559</link>
      <description>&lt;P&gt;I think the program below is valid Fortran, but ifort won't compile it.&lt;BR /&gt;However if in line 4 U(J) is changed to J the program compiles and runs with&lt;BR /&gt;ifort, printing&lt;/P&gt;
&lt;P&gt;1 2 2 3 3 3&lt;/P&gt;
&lt;P&gt;Both versions initialize the array A with nested implied-do loops. Two&lt;BR /&gt;other compilers, gfortran and g95, compile and run either version of the&lt;BR /&gt;program and print the same output as above.&lt;/P&gt;
&lt;P&gt;The offending 7-line program with its compile-time messages and what I hope&lt;BR /&gt;is enough information about my system from the uname -a command:&lt;/P&gt;
&lt;P&gt;greta-pt[~/Jfh] % cat initbug.f90&lt;BR /&gt;program test&lt;BR /&gt;implicit none&lt;BR /&gt;integer :: INNER, J&lt;BR /&gt;integer,parameter :: U(3) = [ 1,2,3 ]&lt;BR /&gt;integer :: A(6) = [ ( ( J, INNER = 1,U(J) ), J = 1,3 ) ]&lt;BR /&gt;print "(999I2)",A&lt;BR /&gt;end program test&lt;BR /&gt;greta-pt[~/Jfh] % ifort -V initbug.f90&lt;BR /&gt;Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R)&lt;BR /&gt;64, Version 19.1.2.254 Build 20200623&lt;BR /&gt;Copyright (C) 1985-2020 Intel Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;Intel(R) Fortran 19.1-1648&lt;BR /&gt;initbug.f90(5): error #6973: This is not a valid initialization expression.&lt;BR /&gt;[J]&lt;BR /&gt;integer :: A(6) = [ ( ( J, INNER = 1,U(J) ), J = 1,3 ) ]&lt;BR /&gt;----------------------------^&lt;BR /&gt;initbug.f90(5): error #6973: This is not a valid initialization expression.&lt;BR /&gt;integer :: A(6) = [ ( ( J, INNER = 1,U(J) ), J = 1,3 ) ]&lt;BR /&gt;----------------------------^&lt;BR /&gt;compilation aborted for initbug.f90 (code 1)&lt;BR /&gt;greta-pt[~/Jfh] % uname -a&lt;BR /&gt;Linux greta-pt.ecs.vuw.ac.nz 5.7.7-arch1-1 #1 SMP PREEMPT Wed, 01 Jul 2020&lt;BR /&gt;14:53:16 +0000 x86_64 GNU/Linux&lt;BR /&gt;greta-pt[~/Jfh] %&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 05:38:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-report-nested-implied-do-initialization/m-p/1205680#M151559</guid>
      <dc:creator>Harper__John</dc:creator>
      <dc:date>2020-09-01T05:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bug report: nested implied-do initialization</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-report-nested-implied-do-initialization/m-p/1205812#M151566</link>
      <description>&lt;P&gt;I agree that this is valid source - NAG Fortran also compiles it without error. I checked with the standard and there's nothing wrong with U(J) as a &lt;EM&gt;scalar-int-expr&lt;/EM&gt; in an &lt;EM&gt;ac-implied-do-control&lt;/EM&gt;&amp;nbsp;(R775 in F2018, R474 in F2008.) Please submit a bug report through the Intel Online Service Center.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:10:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-report-nested-implied-do-initialization/m-p/1205812#M151566</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-09-01T15:10:21Z</dc:date>
    </item>
  </channel>
</rss>

