From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8690 invoked by alias); 15 Jul 2013 06:44:55 -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 6490 invoked by uid 48); 15 Jul 2013 06:42:53 -0000 From: "zeccav at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/57896] New: ICE in in expand_expr_real_2 Date: Mon, 15 Jul 2013 06:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: zeccav at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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: 2013-07/txt/msg00722.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57896 Bug ID: 57896 Summary: ICE in in expand_expr_real_2 Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Created attachment 30504 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30504&action=edit C code causing an ICE in expand_expr_real_2 The attached code causes an ICE in in expand_expr_real_2, This is from testsuite/gcc.target/vperm-v4si-2.c The ICE is maybe due to wrong index at cfgexpand.c:4329 I put gcc_assert ((int) ((enum tree_code) (t)->base.code) < sizeof_tree_code_type); before "if (IS_TYPE_OR_DECL_P (t))" and I got the backtrace in the bottom of the attached file. I defined sizeof_tree_code_type in tree.h and tree.c const int sizeof_tree_code_type=sizeof(tree_code_type); I am sorry I was not able to produce a shorter test case.