Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1 View

Bug: internal write different from printout

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.

0 Kudos
1 Reply
Highlighted
1 View

This is a bug we have already

This is a bug we have already fixed for the upcoming 17.0 release. It is fixed in the public beta.

Retired 12/31/2016
0 Kudos