From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20594 invoked by alias); 24 Jul 2007 17:19:18 -0000 Received: (qmail 20568 invoked by uid 48); 24 Jul 2007 17:19:08 -0000 Date: Tue, 24 Jul 2007 17:19:00 -0000 Subject: [Bug fortran/32884] New: ICE: Accessing non-local variable in PURE function X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02486.txt.bz2 Using the following invalid program, one gets an ICE NAG f95: Assignment to Z in PURE procedure BAR gfortran: segmentation fault. subroutine foo () integer :: z contains pure function bar (a) integer, intent(in) :: a integer :: bar z = 45 ! <<<<<<<<<<< bar = a end function bar end subroutine foo -- Summary: ICE: Accessing non-local variable in PURE function Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32884