Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

Output statement overflows record on writing a namelist to a string

$
0
0

This piece of code,

program dong
  type x
     integer :: a,b,c
  end type x

  type(x) :: xx

  character(len=65536) :: str
  namelist /zac/ xx

  write(str,nml=zac)
  print *, trim(str)
end program dong

breaks down with the following runtime error:

forrtl: severe (66): output statement overflows record, unit -5, file Internal NML Write

Why? 

Oh, and ifort is 16.0.2

Thread Topic: 

Bug Report

Viewing all articles
Browse latest Browse all 2583

Trending Articles



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