From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30564 invoked by alias); 12 Jan 2015 15:21:37 -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 30500 invoked by uid 48); 12 Jan 2015 15:21:30 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce Date: Mon, 12 Jan 2015 15:21: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: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc component 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-01/txt/msg00814.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org Component|tree-optimization |fortran --- Comment #2 from Jakub Jelinek --- I'd say this is a Fortran FE bug. The reason this ICEs is that the inliner emits 10 = 11; statement (with INTEGER_CST on lhs), but that happens because myint PARM_DECL is TREE_READONLY, which looks wrong when it clearly is assigned to. The setting of TREE_READONLY happens in trans-decl.c: 2330 /* All implementation args are read-only. */ 2331 TREE_READONLY (parm) = 1; That looks just wrong at least for some f->sym->attr.value dummy arguments == PARM_DECLs, perhaps all?