Reading bad values from binary file in Fortran with a defined input procedure

谁都会走 提交于 2019-12-01 08:13:45

The problem here is that in

select type(t => arr(i)%item)
type is(b)
  write(123) t
end select

ifort is not actually selecting the procedure write_b to process the defined output. It is also not selecting the procedure read_b when it comes to processing the defined input.

Instead the procedures write_a and read_a are selected.

This is a problem with the compiler and should be reported to Intel. A rather tedious workaround is to select type in those procedures.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!