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 <http://gcc.gnu.org/bugs.html> 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)

Reply via email to