This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Sep 2017 21:41:53 +0000
- Subject: [Bug fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line
- Auto-submitted: auto-generated
- References: <bug-58225-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58225
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |NEW
Resolution|FIXED |---
--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #6)
> > So, this is fixed.
>
> Are you sure? I get
>
> print'()j'
> 1
> Warning: Extraneous characters in format at (1)
>
> with 7.2 and a clean trunk.
>
> IMO the marker should point to j.
Maybe we have different behavior on different systems,
depending on locale or who knows what else...
ig25@linux-d6cw:/tmp> /usr/bin/gfortran fmt.f90 2>&1 | od -a
0000000 f m t . f 9 0 : 1 : 8 : nl nl sp p
0000020 r i n t sp ' ( ) j ' nl sp sp sp sp sp
0000040 sp sp sp 1 nl W a r n i n g : sp E x
0000060 t r a n e o u s sp c h a r a c t
0000100 e r s sp i n sp f o r m a t sp a t
0000120 sp ( 1 ) nl
counts eight spaces before the "1" character. What is the output on
your system?