<?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 Hi, please help with problem in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758336#M13823</link>
    <description>&lt;P&gt;Hi, please help with problem when used the both of pointer Character&amp;nbsp;and assumed-length Character as arguments. The pointer character alone works fine, but the assumed-length character cannot pass correctly. So the result string mystr =='foo1' , while it is supposed to be 'foo1foo2'&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2013 09:07:38 GMT</pubDate>
    <dc:creator>Xj_Kong</dc:creator>
    <dc:date>2013-10-31T09:07:38Z</dc:date>
    <item>
      <title>catastrophic error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758328#M13815</link>
      <description>&lt;P&gt;I have a suspicion that this might be fixed in a more recent version of ifort, but I am seeing catastrophic errors for the following code.&lt;BR /&gt;&lt;BR /&gt;[fortran]MODULE mymod&lt;BR /&gt; IMPLICIT NONE&lt;BR /&gt;CONTAINS&lt;BR /&gt; FUNCTION mv_char(in) RESULT(out)&lt;BR /&gt; CHARACTER(:), POINTER, INTENT(in) :: in&lt;BR /&gt; CHARACTER(:), POINTER :: out&lt;BR /&gt;&lt;BR /&gt; ALLOCATE(CHARACTER(LEN(TRIM(ADJUSTL(in)))) :: out)&lt;BR /&gt; out = TRIM(ADJUSTL(in))&lt;BR /&gt; END FUNCTION mv_char&lt;BR /&gt;END MODULE mymod&lt;BR /&gt;&lt;BR /&gt;PROGRAM caterr&lt;BR /&gt; USE mymod&lt;BR /&gt; IMPLICIT NONE&lt;BR /&gt; CHARACTER(:), POINTER :: mystr=&amp;gt;NULL(), foo=&amp;gt;NULL()&lt;BR /&gt; &lt;BR /&gt; ALLOCATE(CHARACTER(3) :: foo)&lt;BR /&gt; foo = 'foo'&lt;BR /&gt; mystr =&amp;gt; mv_char(foo)&lt;BR /&gt;&lt;BR /&gt;END PROGRAM caterr[/fortran] When compiled: &lt;BR /&gt;[bash]$ ifort cat_err.f90 &lt;BR /&gt;cat_err.f90(20): catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.&lt;BR /&gt; mystr =&amp;gt; mv_char(foo)&lt;BR /&gt;-----------^&lt;BR /&gt;compilation aborted for cat_err.f90 (code 3)[/bash] If line 5 is changed from [fortran] CHARACTER(:), POINTER, INTENT(in) :: in[/fortran] to[fortran] CHARACTER(*), POINTER, INTENT(in) :: in[/fortran] I get the following compilation error which i can't understand:&lt;BR /&gt;[bash]$ ifort cat_err.f90 &lt;BR /&gt;cat_err.f90(20): error #8298: If a dummy argument is allocatable or a pointer, the associated actual argument shall have deferred length parameter if and only if the dummy argument has deferred length parameter. [FOO]&lt;BR /&gt; mystr =&amp;gt; mv_char(foo)&lt;BR /&gt;-------------------^&lt;BR /&gt;compilation aborted for cat_err.f90 (code 1)[/bash] Is this a bug that has been seen before and is now fixed in the latest release?&lt;BR /&gt;&lt;BR /&gt;In the second form of the code, is the compiler correct in issuing that error?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Z&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 21:54:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758328#M13815</guid>
      <dc:creator>Izaak_Beekman</dc:creator>
      <dc:date>2011-09-27T21:54:00Z</dc:date>
    </item>
    <item>
      <title>catastrophic error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758329#M13816</link>
      <description>I almost forgot to say which version I am using:&lt;BR /&gt;&lt;PRE&gt;[bash]$ ifort -V
Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1    Build 20090630 Package ID: l_cprof_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.[/bash]&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2011 22:06:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758329#M13816</guid>
      <dc:creator>Izaak_Beekman</dc:creator>
      <dc:date>2011-09-27T22:06:29Z</dc:date>
    </item>
    <item>
      <title>catastrophic error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758330#M13817</link>
      <description>Yes, a more recent version gives the error message&lt;BR /&gt;error #8307: If a dummy argument is allocatable or a pointer, the associated actual argument shall have deferred length parameter if and only if the dummy argument has deferred length parameter. [FOO]&lt;BR /&gt; mystr =&amp;gt; mv_char(foo)&lt;BR /&gt;-------------------------^&lt;BR /&gt;compilation aborted&lt;BR /&gt;&lt;BR /&gt;Still perhaps not as explicit as something like "Fortran 77 (*) notation (f90 assumed size) not compatible with POINTER</description>
      <pubDate>Wed, 28 Sep 2011 12:59:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758330#M13817</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-09-28T12:59:17Z</dc:date>
    </item>
    <item>
      <title>catastrophic error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758331#M13818</link>
      <description>I'm still a bit confused as to what this means. mystr whether an allocatable scalar or a pointer of type character(:) (same for foo and out) throws this error. What is the correct way to return a variable length string from a function or subroutine?</description>
      <pubDate>Wed, 28 Sep 2011 14:46:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758331#M13818</guid>
      <dc:creator>Izaak_Beekman</dc:creator>
      <dc:date>2011-09-28T14:46:22Z</dc:date>
    </item>
    <item>
      <title>catastrophic error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758332#M13819</link>
      <description>(:) notation would be right for a length determined at compile time. For a general length Fortran string, len=* is fine, and, in order to support C interop, it's compatible with an assumed size array of char (len=1). The current support of deferred length removes one of the reasons for POINTER, Your example doesn't show your motivation for trying to combine POINTER with one or another type of variable length character string. In some contexts, you might use one or another type of C_PTR, possibly even in a pure Fortran environment.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Sep 2011 15:48:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758332#M13819</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-09-28T15:48:11Z</dc:date>
    </item>
    <item>
      <title>catastrophic error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758333#M13820</link>
      <description>I have also tried making it allocatable (rather than a pointer) and this fails too. How does one have a variable length string that is intent(out) in a subroutine or a function result? Everything I try gives me a syntax error I don't completely understand or a catastrophic failure.</description>
      <pubDate>Wed, 28 Sep 2011 20:43:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758333#M13820</guid>
      <dc:creator>Izaak_Beekman</dc:creator>
      <dc:date>2011-09-28T20:43:01Z</dc:date>
    </item>
    <item>
      <title>catastrophic error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758334#M13821</link>
      <description>The deferred-length character feature, CHARACTER(:), is not implemented in version 11.1. This is a Fortran 2003 feature implemented in version 12.0 and is usually used in conjunction with ALLOCATABLE. It is less useful with POINTER.&lt;BR /&gt;&lt;BR /&gt;I have rewritten your program to use the feature correctly (and added a PRINT of the result). Note that no explicit ALLOCATE is required. (Your original program compiles successfully in version 12.1.)&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]    MODULE mymod 
      IMPLICIT NONE 
    CONTAINS 
      FUNCTION mv_char(in) RESULT(out) 
        CHARACTER(*), INTENT(in) :: in 
        CHARACTER(:), ALLOCATABLE :: out 
     
        out = TRIM(ADJUSTL(in)) 
      END FUNCTION mv_char 
    END MODULE mymod 
     
    PROGRAM caterr 
      USE mymod 
      IMPLICIT NONE 
      CHARACTER(:), ALLOCATABLE:: mystr, foo
       
      foo = 'foo' 
      mystr = mv_char(foo) 
      print *, mystr
     
    END PROGRAM caterr  [/fortran]&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2011 23:24:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758334#M13821</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-09-28T23:24:40Z</dc:date>
    </item>
    <item>
      <title>catastrophic error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758335#M13822</link>
      <description>Thanks steve. This is what i thought the correct behaviour should be. I need to convince the sys admin to build out the 12.x Intel + MPI toolchain</description>
      <pubDate>Thu, 29 Sep 2011 21:56:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758335#M13822</guid>
      <dc:creator>Izaak_Beekman</dc:creator>
      <dc:date>2011-09-29T21:56:35Z</dc:date>
    </item>
    <item>
      <title>Hi, please help with problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758336#M13823</link>
      <description>&lt;P&gt;Hi, please help with problem when used the both of pointer Character&amp;nbsp;and assumed-length Character as arguments. The pointer character alone works fine, but the assumed-length character cannot pass correctly. So the result string mystr =='foo1' , while it is supposed to be 'foo1foo2'&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 09:07:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758336#M13823</guid>
      <dc:creator>Xj_Kong</dc:creator>
      <dc:date>2013-10-31T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Which version of the Intel</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758337#M13824</link>
      <description>&lt;P&gt;Which version of the Intel compilers are you using, and how are you building the executable? (What flags etc. are you passing to ifort?) What architecture/OS are you on?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 14:47:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758337#M13824</guid>
      <dc:creator>Izaak_Beekman</dc:creator>
      <dc:date>2013-10-31T14:47:24Z</dc:date>
    </item>
    <item>
      <title>I can reproduce the problem.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758338#M13825</link>
      <description>&lt;P&gt;I can reproduce the problem. Something is not being passed correctly. I will let the developers know. Issue ID is DPD200249515.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 16:22:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758338#M13825</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-10-31T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Hi, please help with problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758339#M13826</link>
      <description>&lt;P&gt;Hi, please help with problem when used the both of pointer Character&amp;nbsp;and assumed-length Character as arguments.&lt;/P&gt;
&lt;P&gt;Either the pointer character or &amp;nbsp;assumed-length character as argument&amp;nbsp;alone works fine, but if there is pointer character before the assumed-length character in the argument list,&amp;nbsp;assumed-length character is blocked and cannot pass correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested the examples&amp;nbsp;under "Compiling with Intel(R) Visual Fortran Compiler XE 13.1.3.198 [IA-32]"&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 08:54:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758339#M13826</guid>
      <dc:creator>Xj_Kong</dc:creator>
      <dc:date>2013-11-01T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Thank you very much, Steve!</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758340#M13827</link>
      <description>&lt;P&gt;Thank you very much, Steve! It is the 2nd time I tried to solve problem through this forum and I am really moved that so many warmhearted people are helping each other and IVF really needs this contribution.&lt;/P&gt;
&lt;P&gt;Thanks to Zaak. It is your example that excited me to revert back to this issue.&lt;/P&gt;
&lt;P&gt;Steve, specially thank you. You have solved countless problems for us and IVF.&lt;/P&gt;
&lt;P&gt;Kong&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 08:59:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758340#M13827</guid>
      <dc:creator>Xj_Kong</dc:creator>
      <dc:date>2013-11-01T08:59:00Z</dc:date>
    </item>
    <item>
      <title>Kong, the problem you</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758341#M13828</link>
      <description>&lt;P&gt;Kong, the problem you reported is fixed for a release later this year.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 19:56:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758341#M13828</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-04-08T19:56:26Z</dc:date>
    </item>
    <item>
      <title>That is great!
Thanks!
 </title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758342#M13829</link>
      <description>&lt;P&gt;That is great!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:00:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/catastrophic-error/m-p/758342#M13829</guid>
      <dc:creator>Xj_Kong</dc:creator>
      <dc:date>2014-04-10T07:00:24Z</dc:date>
    </item>
  </channel>
</rss>

