<?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>Thema "All right, thank you for your" in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015214#M106927</link>
    <description>&lt;P&gt;All right, thank you for your responses. I'm just glad I could help.&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2014 07:24:36 GMT</pubDate>
    <dc:creator>Emil_S_</dc:creator>
    <dc:date>2014-05-16T07:24:36Z</dc:date>
    <item>
      <title>Naming trouble</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015210#M106923</link>
      <description>&lt;P&gt;Hi The following code does not compile with ifort 14.0.3, but compiles and works fine with gfortran(4.6, 4.7 and 4.8).&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;module ab_mod
  type :: a
   contains
     procedure :: proc1
     procedure :: proc2
     generic :: proc =&amp;gt; proc1, proc2
  end type a

  type :: b
     class(a), pointer :: a
  end type b

contains
  subroutine proc1(this, val)
    implicit none
    class(a) :: this
    integer, intent(out) :: val
    val=1
  end subroutine proc1

  subroutine proc2(this, val)
    implicit none
    class(a) :: this
    real, intent(out) :: val
    val=1.0
  end subroutine proc2
end module ab_mod

program test
  use ab_mod

  type(a), target :: a_obj
  type(b) :: b_obj
  integer :: val

  b_obj%a =&amp;gt; a_obj

  call a_obj%proc(val)
  print *, val
  call b_obj%a%proc(val)
  print *, val
  call b_obj%a%proc1(val)
  print *, val
end program test&lt;/PRE&gt;

&lt;P&gt;Ifort complains that&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;test.f90(40): error #8486: There is no matching specific subroutine for this type bound generic subroutine call. &amp;nbsp; [PROC]&lt;BR /&gt;
		&amp;nbsp; call b_obj%a%proc(val)&lt;BR /&gt;
		---------------^&lt;BR /&gt;
		compilation aborted for test.f90 (code 1)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The problem centers around the naming of the class(a) component of type b. If I change type b to&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;type :: b
class(a), pointer :: a_obj
end type b&lt;/PRE&gt;

&lt;P&gt;and make the necessary changes to the program-section, the code compiles and runs fine with ifort. The question is, is it illegal to use the original naming? If so, why does ifort not complain a line 10? And why does it complain at line 40, and not 42?&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Emil Sørensen&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 14:39:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015210#M106923</guid>
      <dc:creator>Emil_S_</dc:creator>
      <dc:date>2014-05-14T14:39:27Z</dc:date>
    </item>
    <item>
      <title>Clearly a bug.  It exists in</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015211#M106924</link>
      <description>&lt;P&gt;Clearly a bug. &amp;nbsp;It exists in my Ifort 15 beta version too. &amp;nbsp;But I'm surprised to see this error because I do make use of a somewhat similar construct in one of my codes and it seems to work ok there.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 15:39:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015211#M106924</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2014-05-14T15:39:24Z</dc:date>
    </item>
    <item>
      <title>Thanks, we'll take a look.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015212#M106925</link>
      <description>&lt;P&gt;Thanks, we'll take a look. This one sounds familiar...&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 16:11:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015212#M106925</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-05-14T16:11:57Z</dc:date>
    </item>
    <item>
      <title>This has been escalated as</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015213#M106926</link>
      <description>&lt;P&gt;This has been escalated as issue DPD200256512. It's legal to have the original code with the names being the same - type names and component names are in different "classes" of local names. Thanks for the nice example.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 20:01:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015213#M106926</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-05-14T20:01:10Z</dc:date>
    </item>
    <item>
      <title>All right, thank you for your</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015214#M106927</link>
      <description>&lt;P&gt;All right, thank you for your responses. I'm just glad I could help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 07:24:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015214#M106927</guid>
      <dc:creator>Emil_S_</dc:creator>
      <dc:date>2014-05-16T07:24:36Z</dc:date>
    </item>
    <item>
      <title>This has been fixed for the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015215#M106928</link>
      <description>&lt;P&gt;This has been fixed for the 15.0 release later this year.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 16:03:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Naming-trouble/m-p/1015215#M106928</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-06-11T16:03:42Z</dc:date>
    </item>
  </channel>
</rss>

