https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70235
Bug ID: 70235 Summary: Incorrect output with PF format Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: agardeux.ge at gmail dot com Target Milestone: --- Consider the following formatted output using PF format: program fmt implicit none real*8 y y = 1.0e4 print '(a, -6PF8.3)', '-6PF8.3 y = ', y end program fmt gfortran 4.8.2 and 4.9.3 give an incorrect result: -6PF8.3 y = ******** Tested with: GNU Fortran (Ubuntu 4.8.2-19ubuntu1) 4.8.2 GNU Fortran (GCC) 4.9.3 <mingw32> The output is correct with gfortran 4.4.7: -6PF8.3 y = 0.010 Tested with: GNU Fortran (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)