Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Bug: internal write different from printout

$
0
0

Using Intel Composer XE 2015 on 64-bit Win7 machine. This is perhaps the same bug I found before, but after much effort I tracked down my problem going from G95 to Intel to this, so am reporting it again.

here is the test code:

      implicit none
      integer::i=5
      character(len=4)::char='abc'
      character(len=50)::buf
      
      write(*,*)i,char
      write(buf,*)i,char
      write(*,*)' buf=',trim(buf)
      end

Here is the output:

           5 abc
  buf=           5abc

other compilers preserve space between the two fields.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>