AnsweredAssumed Answered

C_LONG_DOUBLE from iso_c_binding = -1

Question asked by efluder on May 29, 2012
Latest reply on May 30, 2012 by santosh.zanjurne

The value returned from the iso_c_binding in the 4.5.1 version of openf90 returns a value of -1. Other compilers (eg. icc ) return 16

Is there a fix?

Gene

 

[fludee01@node2-4 ~]$ openf90 -v

Open64 Compiler Suite: Version 4.5.1

Built on: 2011-12-16 10:00:56 -0800

Thread model: posix

GNU gcc version 4.2.0 (Open64 4.5.1 driver)

 

[fludee01@node2-4 ~]$ cat test.f90

 

 

use, intrinsic :: iso_c_binding

 

write(6,*) C_INT

write(6,*) C_LONG_DOUBLE

write(6,*) C_DOUBLE

stop

end

[fludee01@node2-4 ~]$

[fludee01@node2-4 ~]$ openf90 test.f90

[fludee01@node2-4 ~]$ ./a.out

4

-1

8

Outcomes