This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/47285] G format outputs wrong number of characters when decimal supplied in literal
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Jan 2011 07:16:12 +0000
- Subject: [Bug libfortran/47285] G format outputs wrong number of characters when decimal supplied in literal
- Auto-submitted: auto-generated
- References: <bug-47285-4@http.gcc.gnu.org/bugzilla/>
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.