<?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>tema Re: Issue with OpenMP and automatic lhs allocation of string variable en Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-OpenMP-and-automatic-lhs-allocation-of-string/m-p/1747963#M178868</link>
    <description>&lt;P&gt;It runs on latest ONEAPI, but throws the errors and then performs ok&lt;/P&gt;&lt;P&gt;You cannot debug it, it sticks on line 6.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;PROGRAM&lt;/SPAN&gt; P
&lt;SPAN&gt;IMPLICIT NONE&lt;/SPAN&gt; (&lt;SPAN&gt;TYPE&lt;/SPAN&gt;, &lt;SPAN&gt;EXTERNAL&lt;/SPAN&gt;)

&lt;SPAN&gt;CHARACTER&lt;/SPAN&gt;(:), &lt;SPAN&gt;ALLOCATABLE&lt;/SPAN&gt; :: S

&lt;SPAN&gt;!S = 'A' ! The code will work if this line is commented out.&lt;/SPAN&gt;
&lt;SPAN&gt;!$OMP PARALLEL PRIVATE(S)&lt;/SPAN&gt;
    S = &lt;SPAN&gt;'Hi!'&lt;/SPAN&gt; 
    &lt;SPAN&gt;WRITE&lt;/SPAN&gt;(*, *) S
&lt;SPAN&gt;!$OMP END PARALLEL &lt;/SPAN&gt;

&lt;SPAN&gt;END PROGRAM&lt;/SPAN&gt; P&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; But this runs, remove the null assignment of S, why do you need it, as you note?&amp;nbsp; The standard Intel note does not have LEN =&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2026 22:19:23 GMT</pubDate>
    <dc:creator>JohnNichols</dc:creator>
    <dc:date>2026-05-14T22:19:23Z</dc:date>
    <item>
      <title>Issue with OpenMP and automatic lhs allocation of string variable</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-OpenMP-and-automatic-lhs-allocation-of-string/m-p/1747950#M178867</link>
      <description>&lt;P&gt;I believe that the code shown below (built with ifx 2026.0.0 on Windows 11) is standard-compliant; however, it crashes with the message: "forrtl: severe (153): allocatable array or pointer is not allocated".&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;PROGRAM P
IMPLICIT NONE (TYPE, EXTERNAL)

CHARACTER(LEN = :), ALLOCATABLE :: S

S = '' ! The code will work if this line is commented out.
!$OMP PARALLEL PRIVATE(S)
    S = 'Hi!' 
    WRITE(*, *) S
!$OMP END PARALLEL 

END PROGRAM P&lt;/LI-CODE&gt;&lt;P&gt;Similar codes, where the allocatable variable is an integer array, do not exhibit the same behavior. It seems the bug is limited to the automatic lhs allocation of S on line 8.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 19:30:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-OpenMP-and-automatic-lhs-allocation-of-string/m-p/1747950#M178867</guid>
      <dc:creator>OP1</dc:creator>
      <dc:date>2026-05-14T19:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with OpenMP and automatic lhs allocation of string variable</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-OpenMP-and-automatic-lhs-allocation-of-string/m-p/1747963#M178868</link>
      <description>&lt;P&gt;It runs on latest ONEAPI, but throws the errors and then performs ok&lt;/P&gt;&lt;P&gt;You cannot debug it, it sticks on line 6.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;PROGRAM&lt;/SPAN&gt; P
&lt;SPAN&gt;IMPLICIT NONE&lt;/SPAN&gt; (&lt;SPAN&gt;TYPE&lt;/SPAN&gt;, &lt;SPAN&gt;EXTERNAL&lt;/SPAN&gt;)

&lt;SPAN&gt;CHARACTER&lt;/SPAN&gt;(:), &lt;SPAN&gt;ALLOCATABLE&lt;/SPAN&gt; :: S

&lt;SPAN&gt;!S = 'A' ! The code will work if this line is commented out.&lt;/SPAN&gt;
&lt;SPAN&gt;!$OMP PARALLEL PRIVATE(S)&lt;/SPAN&gt;
    S = &lt;SPAN&gt;'Hi!'&lt;/SPAN&gt; 
    &lt;SPAN&gt;WRITE&lt;/SPAN&gt;(*, *) S
&lt;SPAN&gt;!$OMP END PARALLEL &lt;/SPAN&gt;

&lt;SPAN&gt;END PROGRAM&lt;/SPAN&gt; P&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; But this runs, remove the null assignment of S, why do you need it, as you note?&amp;nbsp; The standard Intel note does not have LEN =&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 22:19:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-OpenMP-and-automatic-lhs-allocation-of-string/m-p/1747963#M178868</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2026-05-14T22:19:23Z</dc:date>
    </item>
  </channel>
</rss>

