<?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: character function with variable length in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964198#M22477</link>
    <description>It compiles with CVF 6.5.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Thu, 23 Aug 2001 04:49:06 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2001-08-23T04:49:06Z</dc:date>
    <item>
      <title>character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964197#M22476</link>
      <description>Hi everybody, &lt;BR /&gt; &lt;BR /&gt;I am new to FORTRAN 90 and try to test the (good) changes since FORTRAN 77. In wanting to use character functions with length calculated at run time I ran into a problem with the compiler. I do not now whether this is due to the compiler (I am using a relatively old version: 5.0D) or whether my code is wrong. I have stripped down the code to this: &lt;BR /&gt; &lt;BR /&gt;character(8) char,ch &lt;BR /&gt; &lt;BR /&gt;char='bonjour' &lt;BR /&gt;ch=f(adjustl(char)) &lt;BR /&gt; &lt;BR /&gt;contains &lt;BR /&gt; &lt;BR /&gt;		function f(string) &lt;BR /&gt;		  character(*), intent(in) :: string &lt;BR /&gt;		  character(len(string)) f &lt;BR /&gt; &lt;BR /&gt;		  f=string &lt;BR /&gt;		  return &lt;BR /&gt;		end function &lt;BR /&gt; &lt;BR /&gt;end &lt;BR /&gt; &lt;BR /&gt;and still have an 'assertion failure' message. I read and read the code but see nothing wrong according to the FORTRAN90 manuals I have with me. Please could somebody: &lt;BR /&gt; &lt;BR /&gt;- signal me any gross error, &lt;BR /&gt;- or tell me whether this code compiles with a more recent version of Compaq Visual Fortran. &lt;BR /&gt; &lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Thu, 23 Aug 2001 03:25:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964197#M22476</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-08-23T03:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964198#M22477</link>
      <description>It compiles with CVF 6.5.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 23 Aug 2001 04:49:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964198#M22477</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-08-23T04:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964199#M22478</link>
      <description>Works fine for me at 5.0D also -- pasted from here?! Where do you get &lt;BR /&gt;assertion failure -- at compile-time or at run-time? &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Thu, 23 Aug 2001 21:17:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964199#M22478</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-08-23T21:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964200#M22479</link>
      <description>Works fine for me at 5.0D also -- pasted from here?! Where do you get &lt;BR /&gt;assertion failure -- at compile-time or at run-time?&lt;BR /&gt; &lt;BR /&gt;----------------(few minutes later)---&lt;BR /&gt; &lt;BR /&gt;Oh, it works only in Debug version -- right, it crashes in Release, even with &lt;BR /&gt;/optimize:1 &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Thu, 23 Aug 2001 21:19:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964200#M22479</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-08-23T21:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964201#M22480</link>
      <description>Some more details, &lt;BR /&gt; &lt;BR /&gt;Within the large program the code comes from, I have the same behavior. The Release version crashes at compile time while the Debug version passes through (Jugoslav, I had not tried /optimize:1). However, it is worth knowing that I have a strange behavior at run-time with the Debug version. At some point I get a Microsoft Developer Studio message: &lt;BR /&gt; &lt;BR /&gt;"User breakpoint called from code at 0x77f862e8". &lt;BR /&gt; &lt;BR /&gt;If I click OK the program seems to work fine. Does this message make sense to somebody? Is this real bad?</description>
      <pubDate>Thu, 23 Aug 2001 22:01:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964201#M22480</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-08-23T22:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964202#M22481</link>
      <description>To clarify: there is no problem with your code, but with the compiler. "User breakpoint called from XXX" messages can be ignored, since as far as I know those are some kind of checkouts in run-time libraries; (kind of ASSERTs?). &lt;BR /&gt; &lt;BR /&gt;By the way, my DVF 5.0D when F95 compatibility warnings are turned on warns that "Variable-length character functions are obsolescent in F95". Is it really so? I don't see a reason why they are declared obsolete?</description>
      <pubDate>Fri, 24 Aug 2001 04:29:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964202#M22481</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-08-24T04:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964203#M22482</link>
      <description>The "user breakpoint" message is not a "problem" in the compiler - this is how the Run-Time Library signals I/O errors.  You should get a real error message in the console window.&lt;BR /&gt;&lt;BR /&gt;Assumed-length (CHARACTER*(*) functions are indeed obsolescent in Fortran 95.  Not our doing, and we'll continue to support them.  See my Dr. Fortran article in &lt;A href="http://www.compaq.com/fortran/visual/dvf-news-3.txt"&gt;Visual Fortran Newsletter III&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 24 Aug 2001 07:40:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964203#M22482</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-08-24T07:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964204#M22483</link>
      <description>Thanks to you guys, I now know that the problem is with the compiler, not the code. Also that the code compiles with CVF6.5 and I am seriously considering upgrading. However, I am still wondering whether the bug has been truly fixed. Compiling doesn't mean running (see my previous message). I suppose that for people with an inside knowledge of the compiler it is not too difficult to identify the bug in the short code submitted. Hence my question: &lt;BR /&gt; &lt;BR /&gt;Steve, has this bug been identified and fixed? &lt;BR /&gt; &lt;BR /&gt;Roger</description>
      <pubDate>Sat, 25 Aug 2001 02:53:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964204#M22483</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-08-25T02:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: character function with variable length</title>
      <link>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964205#M22484</link>
      <description>I believe so, yes.  We found and fixed several problems in this area over the past few years.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 25 Aug 2001 08:52:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/character-function-with-variable-length/m-p/964205#M22484</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-08-25T08:52:52Z</dc:date>
    </item>
  </channel>
</rss>

