Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Bad formatting with g-format

Harald
Beginner
687 Views

Hello, there is a bug in g-formatting which makes the following example program ifort_g_format_bug write (*,'(g6.1)') 1.0 ! Expected output: 1. end program ifort_g_format_bug output '******' (6 stars) instead of '1.'. All other compilers I tested produce the expected output. Harald

0 Kudos
4 Replies
Harald
Beginner
687 Views

I wish the user interface were more user-friendly.  I can hardly recognize the code I posted.

program ifort_g_format_bug
  write (*,'(g6.1)') 1.0         ! Expected output: 1.
end program ifort_g_format_bug

0 Kudos
Steven_L_Intel1
Employee
687 Views

This is fixed in the version coming out in September.

0 Kudos
Harald
Beginner
687 Views

Good to know!

Thanks,

Harald

0 Kudos
Harald
Beginner
687 Views

Steve,

this issue appears to be fixed now.  With

Intel(R) Fortran Compiler XE for applications running on IA-32, Version 14.0.1.106 Build 20131008

I get the expected result.

Thanks,

Harald

 

0 Kudos
Reply