From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29771 invoked by alias); 5 Feb 2015 15:34:33 -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 Received: (qmail 29703 invoked by uid 48); 5 Feb 2015 15:34:29 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64947] ICE in gimplify_expr, at gimplify.c:8425 with arrays of type(C_PTR) Date: Thu, 05 Feb 2015 15:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00472.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64947 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Internal compiler error: in |ICE in gimplify_expr, at |gimplify_expr, at |gimplify.c:8425 with arrays |gimplify.c:8425 |of type(C_PTR) --- Comment #3 from Tobias Burnus --- (In reply to Tobias Burnus from comment #2) > void * D.3415; > D.3415 = (*strings)[0]; > D.3417 = strnlen (*D.3415, 40); Namely, the "*D.3415" is the problem. What data type has a "void *" pointer if it is dereferenced? We really have to pass D.3415 to strlen - not the derefed temporary variable.