From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21474 invoked by alias); 18 Nov 2014 17:02:42 -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 21362 invoked by uid 48); 18 Nov 2014 17:02:33 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63764] [5 Regression] ICE: in verify_ssa, at tree-ssa.c:939 Date: Tue, 18 Nov 2014 17:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: 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: 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: 2014-11/txt/msg01742.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63764 --- Comment #10 from Jakub Jelinek --- (In reply to joseph@codesourcery.com from comment #9) > On Tue, 18 Nov 2014, jakub at gcc dot gnu.org wrote: > > So, shall we convert_vector_to_pointer_for_subscript add something like > > if (!lvalue_p (*vecp)) > > error_at (...); ? > > What wording for it? > > I'd think it's reasonable to subscript a non-lvalue vector (including e.g. > the return value of a function with vector return type) - this might of > course need to create a temporary object, as with non-lvalue arrays. For rhs yes, supposedly. But not for lhs. So, perhaps if *vecp is not an lvalue, assign to temporary and take address of that, but then in the end wrap the result of the subscripting into NON_LVALUE_EXPR, so that we actually error out on the testcase?