Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

write(...,*) difference from G95. Bug?

$
0
0

here is the test code:

      character(len=100)::buf
      write(buf,*)0.,'ABC'
      write(*,*)buf
      end

With intel (Composer XE 2015) the output is

 0.0000000E+00ABC

while with G95 it is

 0. ABC

Note the space with G95, which allows a subsequent read(...,*).

This seems like a bug to me.


Viewing all articles
Browse latest Browse all 3270

Trending Articles



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