From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22744 invoked by alias); 29 Nov 2012 03:07:35 -0000 Received: (qmail 22706 invoked by uid 48); 29 Nov 2012 03:07:22 -0000 From: "d.g.gorbachev at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/55525] ICE: tree check: expected array_type, have pointer_type in array_ref_low_bound, at expr.c:6768 Date: Thu, 29 Nov 2012 03:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: ice-on-invalid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: d.g.gorbachev 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-Changed-Fields: 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 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: 2012-11/txt/msg02824.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55525 --- Comment #2 from Dmitry Gorbachev 2012-11-29 03:07:21 UTC --- 4.8.0: In file included from :0:0: 1.c:3:6: warning: type of 's' does not match original declaration [enabled by default] char s[8]; ^ In file included from 1.c:8:0, from :0: 2.c:1:7: note: previously declared here char *s = (char *) 0; ^ In file included from 1.c:8:0, from :2: 1.c: In function 'main': 1.c:7:3: internal compiler error: tree check: expected array_type, have pointer_type in array_ref_low_bound, at expr.c:6768 return strcmp(&s[1], "foo"); ^ 0x87f7ab4 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc-4.8/gcc/tree.c:8955 0x815572e tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc-4.8/gcc/tree.h:3680 0x82c5aec array_ref_low_bound(tree_node*) ../../gcc-4.8/gcc/expr.c:6768 0x82c5118 get_inner_reference(tree_node*, long long*, long long*, tree_node**, machine_mode*, int*, int*, bool) ../../gcc-4.8/gcc/expr.c:6616 0x817d9d4 get_object_alignment_2 ../../gcc-4.8/gcc/builtins.c:295 0x817e46a get_pointer_alignment_1(tree_node*, unsigned int*, unsigned long long*) ../../gcc-4.8/gcc/builtins.c:493 0x817e6e0 get_pointer_alignment(tree_node*) ../../gcc-4.8/gcc/builtins.c:540 0x8187fd8 expand_builtin_strcmp ../../gcc-4.8/gcc/builtins.c:3768 0x818f7d8 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc-4.8/gcc/builtins.c:6193 0x82d407d expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**) ../../gcc-4.8/gcc/expr.c:10108 0x82c96a3 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**) ../../gcc-4.8/gcc/expr.c:7816 0x82beec7 store_expr(tree_node*, rtx_def*, int, bool) ../../gcc-4.8/gcc/expr.c:5192 0x82bdd8f expand_assignment(tree_node*, tree_node*, bool) ../../gcc-4.8/gcc/expr.c:4978 0x81d275a expand_call_stmt ../../gcc-4.8/gcc/cfgexpand.c:2113 0x81d2851 expand_gimple_stmt_1 ../../gcc-4.8/gcc/cfgexpand.c:2153 0x81d2e99 expand_gimple_stmt ../../gcc-4.8/gcc/cfgexpand.c:2305 0x81d9a28 expand_gimple_basic_block ../../gcc-4.8/gcc/cfgexpand.c:4084 0x81db331 gimple_expand_cfg ../../gcc-4.8/gcc/cfgexpand.c:4603