From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4231 invoked by alias); 9 Jan 2011 15:31:28 -0000 Received: (qmail 4219 invoked by uid 22791); 9 Jan 2011 15:31:27 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Sun, 09 Jan 2011 15:31:24 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/38536] ICE with C_LOC in resolve.c due to not properly going through expr->ref X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code 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: mikael 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: Sun, 09 Jan 2011 15:38: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-01/txt/msg00808.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38536 --- Comment #14 from Dominique d'Humieres 2011-01-09 15:31:09 UTC --- > Thomas posted his patch at: http://gcc.gnu.org/ml/fortran/2011-01/msg00067.html With this patch, the test in comment #6 still gives an ICE: Segmentation fault. The backtrace is Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000008 0x00000001000dd18d in gfc_conv_procedure_call (se=0x7fff5fbfd650, sym=0x141a21640, args=0x141a23000, expr=0x141a24680, append_args=0x0) at ../../work/gcc/fortran/trans-expr.c:2682 2682 && fsym->as->type != AS_ASSUMED_SHAPE; (gdb) bt #0 0x00000001000dd18d in gfc_conv_procedure_call (se=0x7fff5fbfd650, sym=0x141a21640, args=0x141a23000, expr=0x141a24680, append_args=0x0) at ../../work/gcc/fortran/trans-expr.c:2682 #1 0x00000001000de004 in gfc_conv_function_expr (se=0x7fff5fbfd650, expr=) at ../../work/gcc/fortran/trans-expr.c:4036 Previous frame inner to this frame (gdb could not unwind past this frame) No further testing yet.