public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39991]  New: wrong locus in error message
@ 2009-05-01  9:32 dfranke at gcc dot gnu dot org
  2010-04-18 15:05 ` [Bug fortran/39991] " dominiq at lps dot ens dot fr
  2010-04-19 17:55 ` mikael at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-05-01  9:32 UTC (permalink / raw)
  To: gcc-bugs

$> cat locus.f90
MODULE m
  PUBLIC :: s
CONTAINS
  SUBROUTINE s()
  END SUBROUTINE
  SUBROUTINE s()
  END SUBROUTINE
END MODULE

$> gfortran-svn locus.f90
locus.f90:6.14:

  SUBROUTINE s()
              1
locus.f90:2.13:

  PUBLIC :: s
             2
Error: Procedure 's' at (1) is already defined at (2)


Without "PUBLIC :: s", the correct message is printed:
$> gfortran-svn locus.f90
locus.f90:6.14:

  SUBROUTINE s()
              1
locus.f90:4.14:

  SUBROUTINE s()
              2
Error: Procedure 's' at (1) is already defined at (2)


-- 
           Summary: wrong locus in error message
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dfranke at gcc dot gnu dot org


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


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

* [Bug fortran/39991] wrong locus in error message
  2009-05-01  9:32 [Bug fortran/39991] New: wrong locus in error message dfranke at gcc dot gnu dot org
@ 2010-04-18 15:05 ` dominiq at lps dot ens dot fr
  2010-04-19 17:55 ` mikael at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-04-18 15:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dominiq at lps dot ens dot fr  2010-04-18 15:04 -------
Confirmed for gcc version 4.4.2, but this pr seems to be fixed for 4.5 (at
least since revision 154654) and trunk. Unless someone is able to point when it
has been fixed and want to backport the fix to 4.4, this pr could be closed as
fixed.


-- 


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


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

* [Bug fortran/39991] wrong locus in error message
  2009-05-01  9:32 [Bug fortran/39991] New: wrong locus in error message dfranke at gcc dot gnu dot org
  2010-04-18 15:05 ` [Bug fortran/39991] " dominiq at lps dot ens dot fr
@ 2010-04-19 17:55 ` mikael at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-04-19 17:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mikael at gcc dot gnu dot org  2010-04-19 17:54 -------


*** This bug has been marked as a duplicate of 40823 ***


-- 

mikael at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-04-19 17:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-01  9:32 [Bug fortran/39991] New: wrong locus in error message dfranke at gcc dot gnu dot org
2010-04-18 15:05 ` [Bug fortran/39991] " dominiq at lps dot ens dot fr
2010-04-19 17:55 ` mikael at gcc dot gnu dot org

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).