<?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 Thank you FortranFan. I will in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024556#M109001</link>
    <description>&lt;P&gt;Thank you FortranFan. I will investigate this.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2015 09:56:45 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2015-09-14T09:56:45Z</dc:date>
    <item>
      <title>Unexpected "error #6773: An equals sign (=) is invalid in this context" with use of structure constructor in a named constant</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024554#M108999</link>
      <description>&lt;P&gt;The following simple code gives unexpected&amp;nbsp;"error #6773: An equals sign (=) is invalid in this context" with the use of structure constructor in a named constant, but the error doesn't occur in an assignment statement.&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;module m

   implicit none

   integer, parameter :: N = 1

   integer, parameter :: C(N) = [ 0 ]

   type :: t
      integer :: x(N)
   end type t

contains

   subroutine foo()

      type(t) :: t1
      type(t), parameter :: t2 = t( x = C )

      t1 = t( x = C )

      return

   end subroutine foo

end module m
&lt;/PRE&gt;

&lt;P&gt;I'm using the initial release of compiler 16 (v16.0.0.110):&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;Compiling with Intel(R) Visual Fortran Compiler 16.0 [Intel(R) 64]...
m.f90
m.f90(18): error #6773: An equals sign (=) is invalid in this context.   &lt;X&gt;
compilation aborted for m.f90 (code 1)
&lt;/X&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="line-height: 1.5; font-size: 1em;"&gt;I can't find anything in the standard suggesting anything invalid with the above shown structure constructor in a named constant as opposed to the assignment, but may be I'm missing something. &amp;nbsp;I appreciate feedback on this error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 03:16:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024554#M108999</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2015-09-14T03:16:46Z</dc:date>
    </item>
    <item>
      <title>FWIW, the above code compiles</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024555#M109000</link>
      <description>&lt;P&gt;FWIW, the above code compiles with no errors in gfortran and a test executes as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 03:19:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024555#M109000</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2015-09-14T03:19:52Z</dc:date>
    </item>
    <item>
      <title>Thank you FortranFan. I will</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024556#M109001</link>
      <description>&lt;P&gt;Thank you FortranFan. I will investigate this.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:56:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024556#M109001</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-09-14T09:56:45Z</dc:date>
    </item>
    <item>
      <title>A blast from the past!  Here</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024557#M109002</link>
      <description>&lt;P&gt;A blast from the past! &amp;nbsp;Here's some sidebar tidbit.&lt;/P&gt;

&lt;P&gt;When I try a slight variant of the code in the original post, I get the following error in Compaq Visual Fortran:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;--------------------Configuration: m - Win32 Debug--------------------
Compiling Fortran...
m.f90
m.f90(19) : Error: An equals sign (=) is invalid in this context.   &lt;X&gt;
      t1 = t( x = C )
--------------^
Error executing df.exe.

m.obj - 1 error(s), 0 warning(s)
&lt;/X&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The code is:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;module m

   implicit none

   integer, parameter :: N = 1

   integer, parameter :: C(N) = (/ 0 /)

   type :: t
      integer :: x(N)
   end type t

contains

   subroutine foo()

      type(t) :: t1

      t1 = t( x = C )

      return

   end subroutine foo

end module m
&lt;/PRE&gt;

&lt;P&gt;Now this particular code variant works in the current Intel compiler, but it's interesting how the text of the error from Compaq Visual Fortran is&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;exactly the same as in the current compiler, illustrating its roots! &amp;nbsp;It&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;makes sense that Compaq Visual Fortran would throw an error since structure constructor with named arguments was only introduced starting with the Fortran 2003 standard. &amp;nbsp;Is this a case where the compiler,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;when updated to support Fortran 2003, had things fixed up for processing of assignment statements but not for named constants?! :-)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:58:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024557#M109002</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2015-09-14T13:58:00Z</dc:date>
    </item>
    <item>
      <title>I reported this to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024558#M109003</link>
      <description>&lt;P&gt;I reported this to Development and will let you know what I hear back.&lt;/P&gt;

&lt;P&gt;(Internal tracking id:&amp;nbsp; DPD200376064)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 16:38:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024558#M109003</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-09-14T16:38:28Z</dc:date>
    </item>
    <item>
      <title>Quote:Kevin Davis (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024559#M109004</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Kevin Davis (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I reported this to Development and will let you know what I hear back.&lt;/P&gt;

&lt;P&gt;(Internal tracking id:&amp;nbsp; DPD200376064)&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Ok, thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 16:42:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024559#M109004</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2015-09-14T16:42:56Z</dc:date>
    </item>
    <item>
      <title>For whatever reason, the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024560#M109005</link>
      <description>&lt;P&gt;For whatever reason, the following variant of the code in the original post is accepted by the compiler:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;module m

   implicit none

   integer, parameter :: N = 1

   integer, parameter :: C(N) = [ 0 ]

   type :: t
      integer :: x(N)
   end type t

contains

   subroutine foo()

      integer :: i
      type(t), parameter :: t1 = t( x = [ (C(i), i=1,N) ] )

      return

   end subroutine foo

end module m
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 21:29:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024560#M109005</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2015-09-14T21:29:28Z</dc:date>
    </item>
    <item>
      <title>Interesting. Thanks for the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024561#M109006</link>
      <description>&lt;P&gt;Interesting. Thanks for the info. I added this variant to the earlier internal tracking id noted.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 08:10:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Unexpected-quot-error-6773-An-equals-sign-is-invalid-in-this/m-p/1024561#M109006</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-09-15T08:10:28Z</dc:date>
    </item>
  </channel>
</rss>

