public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25135]  New: Interface name does not conflict with subroutine name
@ 2005-11-28 12:22 iguchi at coral dot t dot u-tokyo dot ac dot jp
  2005-11-28 13:19 ` [Bug fortran/25135] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: iguchi at coral dot t dot u-tokyo dot ac dot jp @ 2005-11-28 12:22 UTC (permalink / raw)
  To: gcc-bugs

The following program should occur an error since the same named
entity from different modules cannot be referenced.
However, I compiled successfully, and got output "foo".

I think it is wrong behavior.

module m_foo
contains
  subroutine foo
    print *, "foo"
  end subroutine
end module

module m_bar
  interface foo
    module procedure bar
  end interface
contains
  subroutine bar
    print *, "bar"
  end subroutine
end module

use m_foo
use m_bar

call foo
end


-- 
           Summary: Interface name does not conflict with subroutine name
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iguchi at coral dot t dot u-tokyo dot ac dot jp


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


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

end of thread, other threads:[~2007-01-10 19:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-28 12:22 [Bug fortran/25135] New: Interface name does not conflict with subroutine name iguchi at coral dot t dot u-tokyo dot ac dot jp
2005-11-28 13:19 ` [Bug fortran/25135] " pinskia at gcc dot gnu dot org
2006-12-27 13:47 ` pault at gcc dot gnu dot org
2007-01-01 20:47 ` [Bug fortran/25135] [4.2 and 4.1 only] " pault at gcc dot gnu dot org
2007-01-06 14:14 ` pault at gcc dot gnu dot org
2007-01-06 14:17 ` [Bug fortran/25135] [4.1 " pault at gcc dot gnu dot org
2007-01-10 19:12 ` pinskia 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).