<?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 I have opened a bug report in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070939#M119448</link>
    <description>&lt;P&gt;I have opened a bug report for it. The track ID is&amp;nbsp;DPD200419522.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Xiaoping Duan&lt;/P&gt;

&lt;P&gt;Intel Customer Support&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 07:17:16 GMT</pubDate>
    <dc:creator>Xiaoping_D_Intel</dc:creator>
    <dc:date>2017-03-31T07:17:16Z</dc:date>
    <item>
      <title>Nested array constructors with type spec</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070937#M119446</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;the following code is in my opinion wrongly rejected:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;  print *,              [ integer :: ], 1    ! OK                                
  print *, [ integer :: [ integer :: ], 1 ]  ! Fail                              
end
&lt;/PRE&gt;

&lt;PRE class="brush:bash;"&gt;% ifort bug.f90 -stand f08
bug.f90(2): error #7203: An ac-value-list of an array-constructor must contain at least one ac-value.
  print *, [ integer :: [ integer :: ], 1 ]  ! Fail
--------------------------^
compilation aborted for bug.f90 (code 1)
&lt;/PRE&gt;

&lt;P&gt;The code is accepted by the Cray compiler.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:38:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070937#M119446</guid>
      <dc:creator>Harald</dc:creator>
      <dc:date>2017-03-30T20:38:37Z</dc:date>
    </item>
    <item>
      <title>I agree - bug. The array</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070938#M119447</link>
      <description>&lt;P&gt;I agree - bug. The array constructor with a type-spec but no ac-value-list creates a zero-length array. The second statement's outer array constructor has as its values the empty array and 1 - in this case the empty array would not contribute to the array.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 21:53:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070938#M119447</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2017-03-30T21:53:10Z</dc:date>
    </item>
    <item>
      <title>I have opened a bug report</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070939#M119448</link>
      <description>&lt;P&gt;I have opened a bug report for it. The track ID is&amp;nbsp;DPD200419522.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Xiaoping Duan&lt;/P&gt;

&lt;P&gt;Intel Customer Support&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 07:17:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070939#M119448</guid>
      <dc:creator>Xiaoping_D_Intel</dc:creator>
      <dc:date>2017-03-31T07:17:16Z</dc:date>
    </item>
    <item>
      <title>Steve,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070940#M119449</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;

&lt;P&gt;Can you comment on the validity of (I assume not valid):&lt;/P&gt;

&lt;P&gt;print *, [ integer :: [ real :: 1.0], 1 ]&lt;/P&gt;

&lt;P&gt;Does this imply a real to integer conversion, or does it choke with incompatible types?&lt;/P&gt;

&lt;P&gt;Note, in lieu of the inner real one might specify a type that has no implicit conversion to outer type.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 11:36:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070940#M119449</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-03-31T11:36:23Z</dc:date>
    </item>
    <item>
      <title>Jim, that would be allowed</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070941#M119450</link>
      <description>&lt;P&gt;Jim, that would be allowed and it would convert the REAL value(s) to INTEGER according to the rules for intrinsic assignment. The text from the standard related to this is:&lt;/P&gt;

&lt;P&gt;C4104 (R469) If type-spec specifies an intrinsic type, each ac-value expression in the array-constructor shall be&amp;nbsp;of an intrinsic type that is in type conformance with a variable of type type-spec as specified in Table 7.8.&lt;/P&gt;

&lt;P&gt;Table 7.8: Type conformance for the intrinsic assignment statement&lt;BR /&gt;
	Type of the variable Type of expr&lt;BR /&gt;
	integer integer, real, complex&lt;BR /&gt;
	real integer, real, complex&lt;BR /&gt;
	complex integer, real, complex&lt;BR /&gt;
	character character&lt;BR /&gt;
	logical logical&lt;BR /&gt;
	derived type same derived type as the variable&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 18:26:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-array-constructors-with-type-spec/m-p/1070941#M119450</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2017-03-31T18:26:11Z</dc:date>
    </item>
  </channel>
</rss>

