From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11134 invoked by alias); 10 Jun 2013 14:01:03 -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 11081 invoked by uid 48); 10 Jun 2013 14:00:55 -0000 From: "anna.m.tikhonova at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/57577] New: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123 Date: Mon, 10 Jun 2013 14:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anna.m.tikhonova 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-06/txt/msg00481.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57577 Bug ID: 57577 Summary: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: anna.m.tikhonova at gmail dot com Created attachment 30284 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30284&action=edit Reproducer Hi, attached test case fails with ICE: $ gcc -fcilkplus 1.c 1.c: In function 'main': 1.c:7:1: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tree_operand_check, at tree.h:4123 } ^ 0xae7d99 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /home/anna/trunk/gcc/tree.c:9110 0x4c3cef expr_check /home/anna/trunk/gcc/tree.h:3859 0x4c3cef tree_operand_check /home/anna/trunk/gcc/tree.h:4123 0x531755 tree_operand_check(tree_node*, int, char const*, int, char const*) /home/anna/trunk/gcc/tree.h:4111 0x55255d build_array_notation_expr(unsigned int, tree_node*, tree_node*, tree_code, unsigned int, tree_node*, tree_node*) /home/anna/trunk/gcc/c/c-array-notation.c:1264 0x555cf8 expand_array_notation_exprs(tree_node*) /home/anna/trunk/gcc/c/c-array-notation.c:2777 0x555b90 expand_array_notation_exprs(tree_node*) /home/anna/trunk/gcc/c/c-array-notation.c:2765 0x5438f3 c_parser_compound_statement /home/anna/trunk/gcc/c/c-parser.c:4098 0x5447aa c_parser_declaration_or_fndef /home/anna/trunk/gcc/c/c-parser.c:1758 0x54958b c_parser_external_declaration /home/anna/trunk/gcc/c/c-parser.c:1363 0x549ff6 c_parser_translation_unit /home/anna/trunk/gcc/c/c-parser.c:1251 0x549ff6 c_parse_file() /home/anna/trunk/gcc/c/c-parser.c:11000 0x59c954 c_common_parse_file() /home/anna/trunk/gcc/c-family/c-opts.c:1046 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Compiler used is: Target: x86_64-unknown-linux-gnu Configured with: /home/anna/trunk/configure --with-arch=corei7 --with-cpu=corei7 --enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld --enable-cloog-backend=isl --with-fpmath=sse --enable-languages=c,c++,fortran,java,lto Thread model: posix gcc version 4.9.0 20130608 (experimental) (GCC)