Silverfrost Forums

Welcome to our forums

Bug in G format conversion

13 Jul 2016 3:57 #17785

The 64-bit runtime has a bug in output format conversion of numbers between 0.9 and 1.0 with Gn.1 format, e.g., G8.1.

program chk
implicit none
double precision x
x = 0.96d0
write(*,'(g8.1)')x
end program

The error pop-up that I first see when running the program is: https://www.dropbox.com/s/uip2iewyb0h9lkq/s1.png Only upon pressing the CONTINUE button do I see the traceback: https://www.dropbox.com/s/5z0csuea2qpa41m/s2.png There is no such problem with the 32-bit compiler.

NOTE: Someone, please provide instructions on attaching images in-line in this forum. I tried selecting the URL and pressing the Img button, but that did not work. Under forum Options I see 'HTML is OFF'. Is that the cause of the problem?

13 Jul 2016 11:55 #17786

mecej4,

I ran your example with the latest update to ftn95 Ver 8.05.0. I do not need CONTINUE as I go straight to your second traceback report. I do reproduce the bug. I used : ftn95 tst /64 /debug /link I also do not know the instructions for attaching an image !

John

14 Jul 2016 6:13 #17787

Thanks for the feedback. This bug has now been fixed.

16 Jul 2016 6:34 #17800

Here is a link to download a new set of DLLs for testing. Please remember to save backup copies before replacing the DLLs.

https://www.dropbox.com/s/iuq2riwhfzahbl7/newDLLs1.zip?dl=0

16 Jul 2016 11:20 #17802

Thanks. I ran the full program (from which the short bug reproducer was extracted) with the new DLLs, and it ran correctly.

5 Sep 2016 1:53 #17970

The replacement DLLs mentioned in the post of Sat Jul 16, 2016 have the following problem: when a program containing the DEALLOCATE statement is compiled and linked in 64-bit mode, the following linker error occurs:

The following symbols were not defined:

DEALLOCATE@
5 Sep 2016 7:19 #17971

Thanks for the feedback. I have added the missing function to clearwin64.dll and here is a new link for downloading. Please let me know if this fixes the problem.

https://www.dropbox.com/s/kty2x6bl8ipn080/newDLLs2.zip?dl=0

5 Sep 2016 9:39 #17973

Thanks, Paul. Installing the new DLLs fixed the problem.

Please login to reply.