From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8125 invoked by alias); 21 Sep 2005 10:45:42 -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 8075 invoked by uid 48); 21 Sep 2005 10:45:36 -0000 Date: Wed, 21 Sep 2005 10:45:00 -0000 From: "fxcoudert at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050921104534.23994.fxcoudert@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/23994] New: PROTECTED attribute (F2003) is not implemented X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg02606.txt.bz2 List-Id: Fortran 2003 defines the PROTECTED attribute for variables in modules. Example: ----------------------------------- MODULE temperature REAL,PROTECTED :: temp CONTAINS SUBROUTINE set_temperature temp = 0.0 END SUBROUTINE END MODULE use temperature call set_temperature print *, temp temp = 42 end ----------------------------------- The compiler should issue an error message on that code (temp cannot be modified from outside the module) but the code should compile fine without the "temp = 42" line. The only compiler I know that behaves correctly right now is IBM's. -- Summary: PROTECTED attribute (F2003) is not implemented Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org OtherBugsDependingO 20585 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23994