From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21176 invoked by alias); 28 May 2011 16:39:37 -0000 Received: (qmail 21033 invoked by uid 22791); 28 May 2011 16:39:35 -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; Sat, 28 May 2011 16:39:20 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47601] [OOP] Internal Error: mio_component_ref(): Component not found 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: dominiq at lps dot ens.fr X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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: Sat, 28 May 2011 16:56: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/msg02855.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47601 --- Comment #22 from Dominique d'Humieres 2011-05-28 16:38:18 UTC --- If I did not do any mistake, the patch in comment #21 fixes this PR (AFAICT), but cause the following regression (on x86_64-apple-darwin10 with -m32): [macbook] f90/bug% gfc /opt/gcc/work/gcc/testsuite/gfortran.dg/typebound_proc_12.f90 f951: internal compiler error: Segmentation fault The backtrace is Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x00000000000000a8 gfc_find_component (sym=, name=0x7fff5fbfcda0 "e", noaccess=0 '\0', silent=0 '\0') at ../../work/gcc/fortran/symbol.c:2004 2004 for (p = sym->components; p; p = p->next) (gdb) bt #0 gfc_find_component (sym=, name=0x7fff5fbfcda0 "e", noaccess=0 '\0', silent=0 '\0') at ../../work/gcc/fortran/symbol.c:2004 #1 0x0000000100072378 in gfc_match_varspec (primary=0x141d19c00, equiv_flag=, sub_flag=0 '\0', ppc_arg=1 '\001') at ../../work/gcc/fortran/primary.c:1913