From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27175 invoked by alias); 24 Jul 2007 17:33:41 -0000 Received: (qmail 27147 invoked by uid 48); 24 Jul 2007 17:33:31 -0000 Date: Tue, 24 Jul 2007 17:33:00 -0000 Message-ID: <20070724173331.27146.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32884] ICE: Accessing non-local variable in PURE function In-Reply-To: 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/msg02489.txt.bz2 ------- Comment #1 from burnus at gcc dot gnu dot org 2007-07-24 17:33 ------- Seemingly the error is detected and only on writing the error the segmentation fault occurs: ==494== Invalid read of size 8 ==494== at 0x41D398: show_locus (error.c:171) ==494== by 0x41D29D: error_print (error.c:521) ==494== by 0x41DB1E: gfc_error (error.c:759) ==494== by 0x45B930: resolve_code (resolve.c:5871) ==494== by 0x45BB10: resolve_codes (resolve.c:8472) ==494== by 0x45BACF: resolve_codes (resolve.c:8464) ==494== by 0x45BB54: gfc_resolve (resolve.c:8491) ==494== by 0x44E507: gfc_parse_file (parse.c:3271) ==494== by 0x472FBD: gfc_be_parse_file (f95-lang.c:301) ==494== by 0x6B4BC3: toplev_main (toplev.c:1044) ==494== by 0x52BEB43: (below main) (in /lib64/libc-2.6.so) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32884