<?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 OpenMP syntax bug in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-syntax-bug/m-p/750013#M6736</link>
    <description>The Intel Fortran compiler does not compile programs when variable names used within OpenMP copyprivate clauses start with 'do'&lt;BR /&gt;However, from the OpenMP standard, I see no reason why such variable names should be forbidden?!&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;program test&lt;BR /&gt;&lt;BR /&gt; real :: dot&lt;BR /&gt;&lt;BR /&gt; !$omp parallel private(dot)&lt;BR /&gt;&lt;BR /&gt; !$omp single&lt;BR /&gt; dot = 1.0&lt;BR /&gt; !$omp end single copyprivate(dot)&lt;BR /&gt;&lt;BR /&gt; !$omp end parallel&lt;BR /&gt;&lt;BR /&gt;end program test&lt;BR /&gt;&lt;BR /&gt;Compilation aborts with:&lt;BR /&gt;&lt;BR /&gt;omp_copyprivate_syntax.F90(9): error #5082: Syntax error, found 'DO' when expecting one of: &lt;IDENTIFIER&gt; &lt;CHAR_CON_KIND_PARAM&gt; &lt;CHAR_NAM_KIND_PARAM&gt; &lt;CHARACTER_CONSTANT&gt; /&lt;BR /&gt;!$omp end single copyprivate(dot)&lt;BR /&gt;-----------------------------^&lt;BR /&gt;omp_copyprivate_syntax.F90(9): error #7982: Variables in the COPYPRIVATE list must be PRIVATE in the enclosing parallel region. &lt;T&gt;&lt;BR /&gt;!$omp end single copyprivate(dot)&lt;BR /&gt;-------------------------------^&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The trivial work-around is to rename the variable.&lt;BR /&gt;&lt;/T&gt;&lt;/CHARACTER_CONSTANT&gt;&lt;/CHAR_NAM_KIND_PARAM&gt;&lt;/CHAR_CON_KIND_PARAM&gt;&lt;/IDENTIFIER&gt;</description>
    <pubDate>Wed, 27 Oct 2010 15:52:36 GMT</pubDate>
    <dc:creator>fah10</dc:creator>
    <dc:date>2010-10-27T15:52:36Z</dc:date>
    <item>
      <title>OpenMP syntax bug</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-syntax-bug/m-p/750013#M6736</link>
      <description>The Intel Fortran compiler does not compile programs when variable names used within OpenMP copyprivate clauses start with 'do'&lt;BR /&gt;However, from the OpenMP standard, I see no reason why such variable names should be forbidden?!&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;program test&lt;BR /&gt;&lt;BR /&gt; real :: dot&lt;BR /&gt;&lt;BR /&gt; !$omp parallel private(dot)&lt;BR /&gt;&lt;BR /&gt; !$omp single&lt;BR /&gt; dot = 1.0&lt;BR /&gt; !$omp end single copyprivate(dot)&lt;BR /&gt;&lt;BR /&gt; !$omp end parallel&lt;BR /&gt;&lt;BR /&gt;end program test&lt;BR /&gt;&lt;BR /&gt;Compilation aborts with:&lt;BR /&gt;&lt;BR /&gt;omp_copyprivate_syntax.F90(9): error #5082: Syntax error, found 'DO' when expecting one of: &lt;IDENTIFIER&gt; &lt;CHAR_CON_KIND_PARAM&gt; &lt;CHAR_NAM_KIND_PARAM&gt; &lt;CHARACTER_CONSTANT&gt; /&lt;BR /&gt;!$omp end single copyprivate(dot)&lt;BR /&gt;-----------------------------^&lt;BR /&gt;omp_copyprivate_syntax.F90(9): error #7982: Variables in the COPYPRIVATE list must be PRIVATE in the enclosing parallel region. &lt;T&gt;&lt;BR /&gt;!$omp end single copyprivate(dot)&lt;BR /&gt;-------------------------------^&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The trivial work-around is to rename the variable.&lt;BR /&gt;&lt;/T&gt;&lt;/CHARACTER_CONSTANT&gt;&lt;/CHAR_NAM_KIND_PARAM&gt;&lt;/CHAR_CON_KIND_PARAM&gt;&lt;/IDENTIFIER&gt;</description>
      <pubDate>Wed, 27 Oct 2010 15:52:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-syntax-bug/m-p/750013#M6736</guid>
      <dc:creator>fah10</dc:creator>
      <dc:date>2010-10-27T15:52:36Z</dc:date>
    </item>
    <item>
      <title>OpenMP syntax bug</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-syntax-bug/m-p/750014#M6737</link>
      <description>Thanks for reporting the error. I have filed a bug report (Tracking ID: DPD200162297) and will keep you posted on its status.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Xiaoping Duan&lt;BR /&gt;Intel Customer Support</description>
      <pubDate>Fri, 29 Oct 2010 06:16:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-syntax-bug/m-p/750014#M6737</guid>
      <dc:creator>Xiaoping_D_Intel</dc:creator>
      <dc:date>2010-10-29T06:16:38Z</dc:date>
    </item>
  </channel>
</rss>

