<?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: READ(*,'(a)') error in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1494418#M166764</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/44501"&gt;@Barbara_P_Intel&lt;/a&gt;&amp;nbsp;we'll have to update the Porting Guide.&amp;nbsp; the 'dpcpp' driver is deprecated.&amp;nbsp; Instead of 'dpcpp' above use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;icx -fsyscl -c device.cpp&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 15:16:44 GMT</pubDate>
    <dc:creator>Ron_Green</dc:creator>
    <dc:date>2023-06-09T15:16:44Z</dc:date>
    <item>
      <title>READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1340829#M158579</link>
      <description>&lt;P&gt;I have a simple program&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;program qwin2
character (len=256) :: record
write(*,*) 'Input: '
read(*,'(a)') record
write(*,*) 'read string', record
end program qwin2&lt;/LI-CODE&gt;
&lt;P&gt;I am using VS 2019 (ver 16.6.2) with Intel Fortran Package ID:w_oneAPI_2021.4.0.364 (installed today), using IFORT and a quick win project, x64.&lt;/P&gt;
&lt;P&gt;Compiling and running throws an error of&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expression: (L "Buffer is too small" &amp;amp;&amp;amp; 0)&lt;/LI-CODE&gt;
&lt;P&gt;when i enter any string and hit return.&amp;nbsp; If I just hit return without typing anything the error is&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expression: ((destination)) != NULL &amp;amp;&amp;amp; ((size_in_elements)) &amp;gt; 0&lt;/LI-CODE&gt;
&lt;P&gt;Either way the errors are from the read statement.&amp;nbsp; The stack trace shows problems on Line 22 in QWin2.exe!strncpy_s and Line 218 in QWin.exe!common_tcsncpy_s, so system routines.&amp;nbsp; Following the stack in the debugger, I can see my input string is correct in the locals for strncpy_s with the correct length as it is in common_tcsncpy_s.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know what is going on here?&amp;nbsp; Thanks in advance for any ideas.&lt;/P&gt;
&lt;P&gt;-sanjay&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 08:29:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1340829#M158579</guid>
      <dc:creator>sanjayg0</dc:creator>
      <dc:date>2021-12-02T08:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1340977#M158586</link>
      <description>&lt;P&gt;I can reproduce this - it's almost certainly a bug in the QuickWin library.&amp;nbsp; It is new in 2021.4.0 - works in 2021.3.0. Intel support should investigate.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 16:48:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1340977#M158586</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2021-12-02T16:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341025#M158593</link>
      <description>&lt;P&gt;Thanks Steve.&amp;nbsp; Good to know that I was not chasing a ghost for 6 hours yesterday.&amp;nbsp; Is there a way that I can roll back to 2021.3.0?&amp;nbsp; I'll note that had a working much old compiler (parallel studio xe 2017) but see to have lost that while installing the new one &lt;LI-EMOJI id="lia_confused-face" title=":confused_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Added information is that this behavior varies by compiler selection IFORT vs IFX as well as target x86 vs x64, and if one switches between using subsystems /subsystem:console vs /subsystem:windows.&amp;nbsp; I actually tested all 6 allowed permutations and one of these works, 5 fail in one way or another -- maybe that helps is tracking the bug down.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming I did not get overly confused at 3am; here are the results of that effort at creating a quick win program:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;IFORT&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;x86
&lt;UL&gt;
&lt;LI&gt;subsystem console:&amp;nbsp; runtime Throws buffer error&lt;/LI&gt;
&lt;LI&gt;subsystem windows: runtime Throws buffer error&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;x64
&lt;UL&gt;
&lt;LI&gt;subsystem console:&amp;nbsp; runtime forrtl: The system could not find the environment option that was entered&lt;/LI&gt;
&lt;LI&gt;subsystem windows: runtime throws buffer error&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;IFX
&lt;UL&gt;
&lt;LI style="list-style-type: none;"&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;x64
&lt;UL&gt;
&lt;LI&gt;subsystem console:&amp;nbsp; Works!&lt;/LI&gt;
&lt;LI&gt;subsystem windows: build error, unsatisfied external WinMain referenced from int&amp;nbsp; __cdecl__scrt_common_main_seh&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:19:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341025#M158593</guid>
      <dc:creator>sanjayg0</dc:creator>
      <dc:date>2021-12-02T19:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341035#M158597</link>
      <description>&lt;P&gt;I decided to play around with some of the other IDEs on my box, in particular VS2015 version 14.0.25431.01&lt;/P&gt;
&lt;P&gt;Creating the qwin program via VS2015 + IFORT 2021.4.0 (x86 and x64) + /subsystem:windows creates a properly working qwin application.&amp;nbsp; One thing I note during the build is that the resource compiler version is 6.3.9600.17336.&lt;/P&gt;
&lt;P&gt;When I do the same with VS2019 + IFORT 2021.4.0 (x86 and x64) + /subsystem:windows,&amp;nbsp; I see that it is using Resource Compiler Version 10.0.10011.16384 and the executable throws the buffer error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[In About for VS2015, it lists parallel studio xe 2017, but the build log window shows it is using IFORT (Classic) 2021.4.0]&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:51:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341035#M158597</guid>
      <dc:creator>sanjayg0</dc:creator>
      <dc:date>2021-12-02T19:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341107#M158606</link>
      <description>&lt;P&gt;Unless you uninstalled it, 2021.3.0 is still installed on your system. In Visual Studio, go to Tools &amp;gt; Options &amp;gt; Intel Compilers and Libraries &amp;gt; IFORT Intel Fortran Classic &amp;gt; Compilers. Change "Selected Compiler" as desired. Keep in mind that this is platform-specific, so if you are building 64-bit you'll need to select the x64 tab.&lt;/P&gt;
&lt;P&gt;From the command line, there are shortcuts in the Start menu for each installed version.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 00:34:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341107#M158606</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2021-12-03T00:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341814#M158674</link>
      <description>&lt;P&gt;I've marked this as the "solution" since reverting to 2021.3.0 solves my issue; notwithstanding the bug in 2012.4.0 is still there.&amp;nbsp; Hopefully Intel support has made note of this issue and will fix it in the next release.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 17:15:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341814#M158674</guid>
      <dc:creator>sanjayg0</dc:creator>
      <dc:date>2021-12-06T17:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341827#M158675</link>
      <description>&lt;P&gt;I really hope so as I had to do the same to "fix" the error!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 17:59:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1341827#M158675</guid>
      <dc:creator>Neels</dc:creator>
      <dc:date>2021-12-06T17:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1344620#M158826</link>
      <description>&lt;P&gt;The error is still there in 2021.5.0&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:16:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1344620#M158826</guid>
      <dc:creator>Neels</dc:creator>
      <dc:date>2021-12-16T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1344686#M158831</link>
      <description>&lt;P&gt;That's too bad; I would have guessed that this would be a simple fix.&amp;nbsp; Have your tried 2022.0.0, which seems to be out now? &lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 17:25:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1344686#M158831</guid>
      <dc:creator>sanjayg0</dc:creator>
      <dc:date>2021-12-16T17:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1344693#M158834</link>
      <description>&lt;P&gt;Yes, when you download it it says 2022.1.0.93 but after installing it it says 2021.5.0. I downloaded it today to test.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 17:36:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1344693#M158834</guid>
      <dc:creator>Neels</dc:creator>
      <dc:date>2021-12-16T17:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1344698#M158835</link>
      <description>&lt;P&gt;Bummer.&amp;nbsp; Can anyone from Intel give an indication of when this bug will get fixed?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 17:49:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1344698#M158835</guid>
      <dc:creator>sanjayg0</dc:creator>
      <dc:date>2021-12-16T17:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1346138#M158951</link>
      <description>&lt;P&gt;This issue was escalated to compiler engineering for a fix.&amp;nbsp; I can't say how soon it will be fixed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 23:40:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1346138#M158951</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2021-12-22T23:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1346237#M158955</link>
      <description>&lt;P&gt;Thank you Devorah,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If they need an example or anything else like a screen shot of the errant line in the Qwin library etc. let me know please.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 11:26:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1346237#M158955</guid>
      <dc:creator>Neels</dc:creator>
      <dc:date>2021-12-23T11:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1346345#M158962</link>
      <description>&lt;P&gt;Hi Devorah.&amp;nbsp; Thanks for the note.&amp;nbsp; I really really look forward to seeing this bug fixed -- as do the 1000s of users of our software.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 20:32:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1346345#M158962</guid>
      <dc:creator>sanjayg0</dc:creator>
      <dc:date>2021-12-23T20:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351367#M159386</link>
      <description>&lt;P&gt;Hi Devorah -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See Also the string:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/Run-Time-Breakpoint-for-Simple-Code/m-p/1351149/" target="_blank"&gt;https://community.intel.com/t5/Intel-Fortran-Compiler/Run-Time-Breakpoint-for-Simple-Code/m-p/1351149/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same problem with 2021.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just updated from a 2015 version with new VS and OneAPI for Intel Fortran Classic 2021.4.&amp;nbsp; Based on all these experiences the latest Intel Fortran Classic 2021.4 and Subs are unuseable and should be recalled.&amp;nbsp; It literally calls into question what was the testing protocol for this compiler?&amp;nbsp; Fails a simple READ statement - really????&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Preston Henne&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 03:16:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351367#M159386</guid>
      <dc:creator>preshenne</dc:creator>
      <dc:date>2022-01-14T03:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351566#M159402</link>
      <description>&lt;P&gt;I suspect part of the problem is that QuickWin applications can't readily be tested in an automated environment. This error is specific to QuickWin and does not affect non-QuickWin applications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;QuickWin itself is ancient - it was inherited from Microsoft PowerStation - and hasn't had much attention over the years. It is great for simpler things, and I admit to being astonished that changes were made that broke it.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 18:40:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351566#M159402</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2022-01-14T18:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351573#M159404</link>
      <description>&lt;P&gt;Hi Steve.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yep QuickWin is old! Our code has been under active development since the 1970s and QuickWin is one of those things that has stuck.&amp;nbsp; I would love to ditch it but since I am mostly a Unix type, I have not figured out how to make the switch.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our basic program has only two windows.&amp;nbsp; There is a text input/output terminal window and then there is a graphics window onto which we draw polygons, lines, and place text strings, and read mouse clicks -- so pretty basic.&amp;nbsp; On Linux and Macs, we use a standard terminal for the input/output window and an X11 window for the graphics.&amp;nbsp; Synchronous I/O multiplexing, i.e. FD_SET etc., is used to concurrently poll input from the two windows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There must certainly be a way to do this in Windows outside of QuickWin.&amp;nbsp; If you have some pointers for where to start to learn how to do this outside of QuickWin, that would be super.&amp;nbsp; I imagine switching from QuickWin should not be too too difficult -- maybe one day's worth of work, max.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 19:01:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351573#M159404</guid>
      <dc:creator>sanjayg0</dc:creator>
      <dc:date>2022-01-14T19:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351590#M159406</link>
      <description>&lt;P&gt;The big advantage QuickWin has is its integration with Fortran I/O, which no other solution has. But it sounds as if you don't really need that as you have an implementation on other platforms.&lt;/P&gt;
&lt;P&gt;There are a couple of Fortran-friendly third-party libraries that you may find useful: &lt;A href="http://gino.co.uk/" target="_self"&gt;Gino&lt;/A&gt; and &lt;A href="http://winteracter.com/" target="_self"&gt;Winteracter&lt;/A&gt;. There's also the free, but 32-bit only and not maintained in years &lt;A href="https://xeffort.info/index.html" target="_self"&gt;Xeffort&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Another option is OpenGL, though this has fallen out of favor in recent years. There's a pretty full interface provided by Intel Fortran as well as some examples in the sample bundle. An advantage of using OpenGL is that it is very portable.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 19:44:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351590#M159406</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2022-01-14T19:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351597#M159407</link>
      <description>&lt;P&gt;If the error is in QUICKWIN, then why does code from earlier compilers function correctly and code from later compliers not function correctly?&amp;nbsp; Seems to me the compiler update precipitates this problem.&amp;nbsp; The problem may present in QUICKWIN but it is precipitated by something in 2021.4 &amp;amp; Subs that was done and and is incompatible with QUICKWIN.&amp;nbsp; I have many QUICKWIN / FORTRAN Programs and to change now is a big deal.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 20:43:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351597#M159407</guid>
      <dc:creator>preshenne</dc:creator>
      <dc:date>2022-01-14T20:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: READ(*,'(a)') error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351625#M159411</link>
      <description>&lt;P&gt;It's not a compiler problem, it's a QuickWin library problem.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jan 2022 00:26:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/READ-a-error/m-p/1351625#M159411</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2022-01-15T00:26:34Z</dc:date>
    </item>
  </channel>
</rss>

