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 fortran/58225] In show_locus at fortran/error.c:391 pointer beyond end of line


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?

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