<?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: Defined assignment with assumed rank dummy argument refuses to compile in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1651209#M174675</link>
    <description>&lt;P&gt;Thanks a lot for the confirmation! For now I implemented a workaround in my project using the classic interface with a defined procedure for each possible type of val, which works just fine.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2024 15:34:11 GMT</pubDate>
    <dc:creator>Stijn_Schildermans</dc:creator>
    <dc:date>2024-12-20T15:34:11Z</dc:date>
    <item>
      <title>Defined assignment with assumed rank dummy argument refuses to compile</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1650782#M174641</link>
      <description>&lt;P&gt;I am trying to implement a defined assignment for a derived type that is as generic as possible (i.e. the value I assign into is defined as class(*), dimension(..)). However, I can not get IFX to compile my code. Below is a minimal reproducing example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;module tesst
    implicit none

    type:: t
        integer:: val 
    end type

    interface
        module subroutine get_val(val, tt) 
            class(*), dimension(..), intent(out):: val 
            type(t), intent(in):: tt
        end subroutine
    end interface

    interface assignment(=)
        module procedure get_val
    end interface
contains
    module procedure get_val
        print *, 'Test'
    end procedure
end module

program test
    use tesst
    implicit none

    integer:: v
    type(t):: ttt 

    v = ttt 
end program&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;I am not using any compilation options (ifx -o test test.f90). The compilation error I get is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'test.f90(36): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands. &amp;nbsp;&amp;nbsp;[TTT]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;v = ttt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do not understand this, since ttt is of type(t), which I believe it should be. I already found that the problem lies in the assumed rank for the argument val, but I do not understand what is wrong with my code. Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 13:01:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1650782#M174641</guid>
      <dc:creator>Stijn_Schildermans</dc:creator>
      <dc:date>2024-12-19T13:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Defined assignment with assumed rank dummy argument refuses to compile</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1650804#M174645</link>
      <description>&lt;P&gt;Interesting. NAG Fortran gets an internal compiler error for this. I don't immediately see that this is invalid, but I will ask.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 15:03:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1650804#M174645</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-12-19T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Defined assignment with assumed rank dummy argument refuses to compile</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1651196#M174674</link>
      <description>&lt;P&gt;Compiler bug in both compilers. Your example is valid, as far as I can tell. Would one of the Intel TCEs please file a report on this? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 14:50:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1651196#M174674</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-12-20T14:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Defined assignment with assumed rank dummy argument refuses to compile</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1651209#M174675</link>
      <description>&lt;P&gt;Thanks a lot for the confirmation! For now I implemented a workaround in my project using the classic interface with a defined procedure for each possible type of val, which works just fine.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 15:34:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1651209#M174675</guid>
      <dc:creator>Stijn_Schildermans</dc:creator>
      <dc:date>2024-12-20T15:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Defined assignment with assumed rank dummy argument refuses to compile</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1652748#M174724</link>
      <description>&lt;P&gt;I have reported this bug to Compiler Engineering. It will be fixed in future releases.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2024 00:18:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Defined-assignment-with-assumed-rank-dummy-argument-refuses-to/m-p/1652748#M174724</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2024-12-28T00:18:00Z</dc:date>
    </item>
  </channel>
</rss>

