<?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 problem parsing WRITE format string with continuation in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755492#M10979</link>
    <description>The code is legal and the compiler wrong in complaining. Here is what the standard says:&lt;BR /&gt;&lt;BR /&gt;3 If a character context is to be continued, an &amp;amp; shall be the last nonblank character on the line and&lt;BR /&gt;4 shall not be followed by commentary. There shall be a later line that is not a comment; an &amp;amp; shall be&lt;BR /&gt;5 the first nonblank character on the next such line and the statement continues with the next character&lt;BR /&gt;6 following that &amp;amp;.&lt;BR /&gt;&lt;BR /&gt;I will escalate this to the developers. - issue ID is DPD200169704. However, I personally find continued character constants distasteful and would suggest using concatenation as Jim suggests.</description>
    <pubDate>Wed, 18 May 2011 14:55:28 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2011-05-18T14:55:28Z</dc:date>
    <item>
      <title>problem parsing WRITE format string with continuation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755490#M10977</link>
      <description>The problem is very similar to the one described in an earlier thread &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=68767" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=68767&lt;/A&gt;&lt;BR /&gt;except it now does not required fixed format and occurs with ifort Version 12.0.3. &lt;BR /&gt;Compiling the attached example produces: &lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;ForTests/CompCheck&amp;gt; ifort formatString2.f90&lt;/P&gt;&lt;P&gt;formatString2.f90(2): error #5145: Invalid blank/tab&lt;/P&gt;&lt;P&gt;        WRITE(*,'(10x,"**** CALCULATIO'//'N ****     Num. of nuclides)&amp;amp;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------^&lt;/P&gt;&lt;P&gt;formatString2.f90(3): error #5120: Unterminated character constant&lt;/P&gt;&lt;P&gt;             &amp;amp;")')&lt;/P&gt;&lt;P&gt;--------------^&lt;/P&gt;&lt;P&gt;formatString2.f90(2): error #5082: Syntax error, found ''' when expecting one of: ( &lt;IDENTIFIER&gt; &lt;CHAR_CON_KIND_PARAM&gt; &lt;CHAR_NAM_KIND_PARAM&gt; &lt;CHARACTER_CONSTANT&gt; &lt;INTEGER_CONSTANT&gt; ...&lt;/INTEGER_CONSTANT&gt;&lt;/CHARACTER_CONSTANT&gt;&lt;/CHAR_NAM_KIND_PARAM&gt;&lt;/CHAR_CON_KIND_PARAM&gt;&lt;/IDENTIFIER&gt;&lt;/P&gt;&lt;P&gt;        WRITE(*,'(10x,"**** CALCULATIO'//'N ****     Num. of nuclides)&amp;amp;&lt;/P&gt;&lt;P&gt;-----------------------------------------^&lt;/P&gt;&lt;P&gt;compilation aborted for formatString2.f90 (code 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that - as in the previous thread - the double quotes are just internal to the string and the // operator should concatenate the 2 strings delimited by single quotes. The placement of the concatenation and the line continuation in this particular output are the result of an automatic source transformation and I believe are syntactically correct. &lt;A onclick="ndownload('http://software.intel.com/file/36312')"&gt;The attached file is formatString2.f90&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 May 2011 23:02:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755490#M10977</guid>
      <dc:creator>Jean_U</dc:creator>
      <dc:date>2011-05-17T23:02:33Z</dc:date>
    </item>
    <item>
      <title>problem parsing WRITE format string with continuation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755491#M10978</link>
      <description>You have the continuation character (&amp;amp;) inside the quoted text token (which is not terminated on the line). Try:&lt;BR /&gt;&lt;PRE&gt;[bash]WRITE(*,'(10x,"**** CALCULATIO'//'N **** Num. of nuclides)'&amp;amp;
&amp;amp;//'")')&lt;BR /&gt;&lt;BR /&gt;[/bash]&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 May 2011 14:33:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755491#M10978</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2011-05-18T14:33:38Z</dc:date>
    </item>
    <item>
      <title>problem parsing WRITE format string with continuation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755492#M10979</link>
      <description>The code is legal and the compiler wrong in complaining. Here is what the standard says:&lt;BR /&gt;&lt;BR /&gt;3 If a character context is to be continued, an &amp;amp; shall be the last nonblank character on the line and&lt;BR /&gt;4 shall not be followed by commentary. There shall be a later line that is not a comment; an &amp;amp; shall be&lt;BR /&gt;5 the first nonblank character on the next such line and the statement continues with the next character&lt;BR /&gt;6 following that &amp;amp;.&lt;BR /&gt;&lt;BR /&gt;I will escalate this to the developers. - issue ID is DPD200169704. However, I personally find continued character constants distasteful and would suggest using concatenation as Jim suggests.</description>
      <pubDate>Wed, 18 May 2011 14:55:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755492#M10979</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-05-18T14:55:28Z</dc:date>
    </item>
    <item>
      <title>problem parsing WRITE format string with continuation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755493#M10980</link>
      <description>This will be fixed for a compiler release later this year.</description>
      <pubDate>Fri, 09 Mar 2012 15:24:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-parsing-WRITE-format-string-with-continuation/m-p/755493#M10980</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-03-09T15:24:01Z</dc:date>
    </item>
  </channel>
</rss>

