<?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: Nested defined assignment not called with parameterized derived type in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700207#M176161</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Note the similarities and differences between this and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Address-Unexpectedly-Changes/m-p/1700205#M176160" target="_blank" rel="noopener"&gt;another issue I just updated&lt;/A&gt;&lt;SPAN&gt;. In both bugs, the defined assignment is not called. Here, the problem comes from the parameterized derived type, while the other issue is a&amp;nbsp;nested class structure containing an `allocatable` class.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jun 2025 19:55:57 GMT</pubDate>
    <dc:creator>WileyOne</dc:creator>
    <dc:date>2025-06-27T19:55:57Z</dc:date>
    <item>
      <title>Nested defined assignment not called with parameterized derived type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700195#M176155</link>
      <description>&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Compiler&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;: ifx (IFX) 2025.2.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;OS&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;: Rocky Linux 8.10 (Green Obsidian)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I've found a bug at the intersection of parameterized derived types and defined assignment, specifically when nested 3 classes deep. In the following code, the print statement should display, but it does not.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;module Classes_Header

    implicit none

    type :: class1
        integer :: ii
        contains
        generic, public :: assignment(=) =&amp;gt; copy
        procedure, private :: copy
    end type

    type :: class2
        type(class1) :: myClass1
    end type

    type :: class3(n)
        integer, len :: n
        type(class2) :: myClass2
    end type

    contains

    subroutine copy(lhs,rhs)
        class(class1), intent(out) :: lhs
        class(class1), intent(in)  :: rhs

        lhs%ii = 7
        print *, 'copy was called - worked as expected'
    end subroutine

    function constructor() result(this)
        type(class3(4)) :: this

        this%myClass2%myClass1%ii = 42
    end function

end module

program main

    use Classes_Header

    implicit none
    type(class3(:)), allocatable :: myClass3

    myClass3 = constructor()

end program&lt;/LI-CODE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Note that if class3 is not a parameterized derived type, the defined assignment is called as expected. This is true even if class3 remains an allocatable in the program main.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 18:43:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700195#M176155</guid>
      <dc:creator>WileyOne</dc:creator>
      <dc:date>2025-06-27T18:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nested defined assignment not called with parameterized derived type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700207#M176161</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Note the similarities and differences between this and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Address-Unexpectedly-Changes/m-p/1700205#M176160" target="_blank" rel="noopener"&gt;another issue I just updated&lt;/A&gt;&lt;SPAN&gt;. In both bugs, the defined assignment is not called. Here, the problem comes from the parameterized derived type, while the other issue is a&amp;nbsp;nested class structure containing an `allocatable` class.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 19:55:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700207#M176161</guid>
      <dc:creator>WileyOne</dc:creator>
      <dc:date>2025-06-27T19:55:57Z</dc:date>
    </item>
    <item>
      <title>Re:Nested defined assignment not called with parameterized derived type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700209#M176163</link>
      <description>&lt;P&gt;Thank you for sending this to us.  The bug ID is CMPLRLLVM-68773&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jun 2025 19:58:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700209#M176163</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2025-06-27T19:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nested defined assignment not called with parameterized derived type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700862#M176192</link>
      <description>&lt;P&gt;Three other cases to add here.&amp;nbsp;They are subtle differences from my original post,&amp;nbsp;but I wanted to make sure these edge cases were caught. In short, the defined assignment is &lt;U&gt;neither&lt;/U&gt; called when class3 is a class-allocatable &lt;U&gt;nor&lt;/U&gt; when it extends from an abstract class &lt;U&gt;nor&lt;/U&gt; when it's a type with the same parameter; see the attached files for specifics. I appended "TypeAllocatable_OriginalPost" onto the name of the file above for clarity, but it is the same otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/52256"&gt;@Ron_Green&lt;/a&gt;, should I make separate issues for these bugs or leave them as part of this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 12:06:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1700862#M176192</guid>
      <dc:creator>WileyOne</dc:creator>
      <dc:date>2025-07-01T12:06:24Z</dc:date>
    </item>
    <item>
      <title>Re:Nested defined assignment not called with parameterized derived type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1733679#M178041</link>
      <description>&lt;P&gt;The fix is implemented and will be available in the next major compiler release.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jan 2026 21:53:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1733679#M178041</guid>
      <dc:creator>Igor_V_Intel</dc:creator>
      <dc:date>2026-01-15T21:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Nested defined assignment not called with parameterized derived type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1733748#M178048</link>
      <description>&lt;P&gt;Thank you for the update,&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41896"&gt;@Igor_V_Intel&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 12:17:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1733748#M178048</guid>
      <dc:creator>WileyOne</dc:creator>
      <dc:date>2026-01-16T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested defined assignment not called with parameterized derived type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1746950#M178814</link>
      <description>&lt;P&gt;I have confirmed that this is working correctly with the latest compiler version (2026.0.0). Thank you, Intel team!&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2026 12:36:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Nested-defined-assignment-not-called-with-parameterized-derived/m-p/1746950#M178814</guid>
      <dc:creator>WileyOne</dc:creator>
      <dc:date>2026-05-06T12:36:27Z</dc:date>
    </item>
  </channel>
</rss>

