From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22858 invoked by alias); 9 May 2011 20:29:54 -0000 Received: (qmail 22847 invoked by uid 22791); 9 May 2011 20:29:54 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 May 2011 20:29:40 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/48939] ICE in code involving procedure pointers X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 09 May 2011 20:29:00 -0000 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: 2011-05/txt/msg00761.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48939 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #2 from Tobias Burnus 2011-05-09 20:27:30 UTC --- I can reproduce the failure with 4.6.1 20110421 (rev. 172818) and with openSUSE's 4.6.0 20110427 (Rev. 173021). However, it works with 4.7. Valgrind shows: ==10880== Invalid read of size 4 ==10880== at 0x5A3453: gfc_get_nodesc_array_type (trans-types.c:1433) ==10880== by 0x5A59D7: gfc_sym_type (trans-types.c:1977) ==10880== by 0x5A5164: gfc_get_function_type (trans-types.c:2575) ==10880== by 0x5A5B2A: gfc_get_ppc_type (trans-types.c:2136) ==10880== by 0x5A4CFF: gfc_get_derived_type (trans-types.c:2289) ==10880== by 0x5A5048: gfc_typenode_for_spec (trans-types.c:1060) (I think it could be a duplicate of PR 48588 (fixed Apr 19 for 4.7 and Apr 26 for 4.6). Or not - the program also fails with -fno-whole-file whereas PR 48588's example works with that option.)