From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 471 invoked by alias); 4 Oct 2005 23:37:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 457 invoked by uid 48); 4 Oct 2005 23:37:23 -0000 Date: Tue, 04 Oct 2005 23:37:00 -0000 Subject: [Bug fortran/24207] New: PRIVATE/PUBLIC attribute confusion screws NAMELIST X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl at gcc dot gnu dot org" X-SW-Source: 2005-10/txt/msg00411.txt.bz2 List-Id: 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