This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/47285] G format outputs wrong number of characters when decimal supplied in literal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47285

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-14 07:15:45 UTC ---
Just for curiosity and comparison - results for other compilers:

I get the same output with gfortran (4.1, 4.3, and 4.6) and NAG f95:
>-10000.       <
>*****<

ifort, crayftn, pathf95, sunf95 and openf95* print for both programs ">*****<"
(i.e. also for the first one); g95 prints for the second one the ">*****<" -
and aborts w/ a run-time error for the first program ("G descriptor not wide
enough"). PGI segfaults for the first one and print ">*****<" for the second
one.

And g77 prints:
>       <
>       <

Note: I changed the format to FORMAT(">",G5.5E5,"<") to make it easier to see
tailing spaces.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]