View previous topic :: View next topic |
Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Wed Jul 13, 2016 4:57 pm Post subject: Bug in G format conversion |
|
|
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.
Code: |
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? |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Thu Jul 14, 2016 12:55 am Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Thu Jul 14, 2016 7:13 am Post subject: |
|
|
Thanks for the feedback. This bug has now been fixed. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Sat Jul 16, 2016 12:20 pm Post subject: |
|
|
Thanks. I ran the full program (from which the short bug reproducer was extracted) with the new DLLs, and it ran correctly. |
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Mon Sep 05, 2016 2:53 am Post subject: |
|
|
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:
Code: | The following symbols were not defined:
DEALLOCATE@
|
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Mon Sep 05, 2016 10:39 am Post subject: |
|
|
Thanks, Paul. Installing the new DLLs fixed the problem. |
|
Back to top |
|
|
|