public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/52328] New: Wrong line in warning
@ 2012-02-21 16:54 Keller at hlrs dot de
  2012-02-21 16:55 ` [Bug fortran/52328] " Keller at hlrs dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Keller at hlrs dot de @ 2012-02-21 16:54 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52328
           Summary: Wrong line in warning
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Keller@hlrs.de


The line numbering in the warning of below example is wrong:

Warning: Nonconforming tab character in column 1 of line 6

This is warning is emitted starting with gfortran-4.2 and occurs in svn-trunk
when compiling with -Wall.


This is related to the fix back then in PR 34899.

Thank You very much.


PS: some more info:
>>>>>> gcc -v:
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/gcc-svn/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/opt/gcc-svn --enable-bootstrap
--enable-threads --enable-tls --enable-languages=c,c++,fortran,java,lto,go
--enable-lto --enable-gold --enable-plugins
Thread model: posix
gcc version 4.7.0 20120213 (experimental) (GCC

>>>>>> uname -a:
james:/usr/src/gcc-svn # uname -a
Linux james 3.2.6-2 #1 SMP Mon Feb 20 20:54:52 CET 2012 x86_64 x86_64 x86_64
GNU/Linux


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/52328] Wrong line in warning
  2012-02-21 16:54 [Bug fortran/52328] New: Wrong line in warning Keller at hlrs dot de
@ 2012-02-21 16:55 ` Keller at hlrs dot de
  2012-02-21 20:08 ` kargl at gcc dot gnu.org
  2013-06-24 21:31 ` dominiq at lps dot ens.fr
  2 siblings, 0 replies; 4+ messages in thread
From: Keller at hlrs dot de @ 2012-02-21 16:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Rainer Keller <Keller at hlrs dot de> 2012-02-21 16:54:39 UTC ---
Created attachment 26715
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26715
test-case showing the wrong location of nonconformant tab-character.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/52328] Wrong line in warning
  2012-02-21 16:54 [Bug fortran/52328] New: Wrong line in warning Keller at hlrs dot de
  2012-02-21 16:55 ` [Bug fortran/52328] " Keller at hlrs dot de
@ 2012-02-21 20:08 ` kargl at gcc dot gnu.org
  2013-06-24 21:31 ` dominiq at lps dot ens.fr
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu.org @ 2012-02-21 20:08 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

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

--- Comment #2 from kargl at gcc dot gnu.org 2012-02-21 18:53:37 UTC ---
It works for me with all versions from 4.2 through 4.7.


troutmask:sgk[213] gfc4x -o z -Wall pr.f
Warning: Nonconforming tab character in column 1 of line 3
troutmask:sgk[214] gfc46 -o z -Wall pr.f
Warning: Nonconforming tab character in column 1 of line 3
troutmask:sgk[215] gfc45 -o z -Wall pr.f
Warning: Nonconforming tab character in column 1 of line 3
troutmask:sgk[216] gfc44 -o z -Wall pr.f
Warning: Nonconforming tab character in column 1 of line 3
troutmask:sgk[217] gfc43 -o z -Wall pr.f
Warning: Nonconforming tab character in column 1 of line 3
troutmask:sgk[218] gfc42 -o z -Wall pr.f
Warning: Nonconforming tab character in column 1 of line 3


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/52328] Wrong line in warning
  2012-02-21 16:54 [Bug fortran/52328] New: Wrong line in warning Keller at hlrs dot de
  2012-02-21 16:55 ` [Bug fortran/52328] " Keller at hlrs dot de
  2012-02-21 20:08 ` kargl at gcc dot gnu.org
@ 2013-06-24 21:31 ` dominiq at lps dot ens.fr
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-06-24 21:31 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Works for me too from 4.4 to trunk (4.9):

 write (*,*) "HELLO WORLD"
 1
Warning: Nonconforming tab character at (1)

Closing as WORKSFORME. Please reopen if I am wrong.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-24 21:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-21 16:54 [Bug fortran/52328] New: Wrong line in warning Keller at hlrs dot de
2012-02-21 16:55 ` [Bug fortran/52328] " Keller at hlrs dot de
2012-02-21 20:08 ` kargl at gcc dot gnu.org
2013-06-24 21:31 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).