public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24207]  New: PRIVATE/PUBLIC attribute confusion screws NAMELIST
@ 2005-10-04 23:37 kargl at gcc dot gnu dot org
  2005-10-05 12:11 ` [Bug fortran/24207] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-10-04 23:37 UTC (permalink / raw)
  To: gcc-bugs

The best description comes from an email by Richard Maine.

http://gcc.gnu.org/ml/fortran/2005-10/msg00073.html

Consider the following code:

  module a
   implicit none
   real b
  end module a

  module c
   use a
   implicit none
   private
   contains
      subroutine d
         namelist /e/ b
         read(5,e)
      end subroutine d
  end module c

The PRIVATE keyword in MODULE C does not effect the PUBLIC attribute of
b that is available via the USE a statement.

Note, Lahey's website says the above is conforming code.


-- 
           Summary: PRIVATE/PUBLIC attribute confusion screws NAMELIST
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kargl at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-10-23 23:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-04 23:37 [Bug fortran/24207] New: PRIVATE/PUBLIC attribute confusion screws NAMELIST kargl at gcc dot gnu dot org
2005-10-05 12:11 ` [Bug fortran/24207] " pinskia at gcc dot gnu dot org
2005-10-12  5:43 ` cvs-commit at gcc dot gnu dot org
2005-10-12  7:20 ` cvs-commit at gcc dot gnu dot org
2005-10-12  7:30 ` pault at gcc dot gnu dot org
2005-10-23 23:02 ` 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).