From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30757 invoked by alias); 25 Nov 2010 16:47:26 -0000 Received: (qmail 30695 invoked by uid 22791); 25 Nov 2010 16:47:25 -0000 X-SWARE-Spam-Status: No, hits=-2.8 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; Thu, 25 Nov 2010 16:47:21 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45586] [4.6 Regression] ICE non-trivial conversion at assignment 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-checking, ice-on-valid-code, lto, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Keywords CC Component 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: Thu, 25 Nov 2010 16:59: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: 2010-11/txt/msg03153.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45586 Richard Guenther changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |matz at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Component|lto |fortran --- Comment #9 from Richard Guenther 2010-11-25 16:47:00 UTC --- The issue is that realspace_grid_type%r is marked as restrict, but y is a POINTER and y => x%r associates y with that allocatable even though it doesn't have TARGET attribute. This points at either a FE bug, an invalid testcase. The FE bug would be that allocatables are not really restrict as they can be aliased. The invalid testcase would be that doing y => x%r isn't valid (but gfortran doesn't diagnose that, so also a FE bug). Can someone clarify why or if it is legal to associate y with x%r? If declaring x with POINTER attribute makes it legal then we need to form a type variant for realspace_grid_type, re-using the original type isn't conformant with middle-end expectations. FE again for now, atm I think this is a possible generic wrong-code problem.