http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57541

--- Comment #2 from Anna <anna.m.tikhonova at gmail dot com> ---
Comment out line "long l = (long)N;" and here's another ICE.

$ gcc -fcilkplus 1.c
1.c: In function 'main':
1.c:4:18: error: 'N' undeclared (first use in this function)
   char c = (char)N;
                  ^
1.c:4:18: note: each undeclared identifier is reported only once for each
function it appears in
1.c:7:5: error: 'l' undeclared (first use in this function)
   A[l:s:c];
     ^
1.c:7:6: error: expected array notation expression before ':' token
   A[l:s:c];
      ^
1.c:7:6: internal compiler error: Segmentation fault
0x8fee9f crash_signal
        /home/anna/trunk/gcc/toplev.c:333
0x54b5aa contains_struct_check
        /home/anna/trunk/gcc/tree.h:3803
0x54b5aa build_array_notation_ref(unsigned int, tree_node*, tree_node*,
tree_node*, tree_node*, tree_node*)
        /home/anna/trunk/gcc/c/c-array-notation.c:2809
0x53c5ce c_parser_array_notation
        /home/anna/trunk/gcc/c/c-parser.c:11165
0x53dad6 c_parser_postfix_expression_after_primary
        /home/anna/trunk/gcc/c/c-parser.c:6978
0x534e70 c_parser_postfix_expression
        /home/anna/trunk/gcc/c/c-parser.c:6850
0x53681a c_parser_unary_expression
        /home/anna/trunk/gcc/c/c-parser.c:6042
0x53ac86 c_parser_cast_expression
        /home/anna/trunk/gcc/c/c-parser.c:5880
0x53aeae c_parser_binary_expression
        /home/anna/trunk/gcc/c/c-parser.c:5691
0x53b7c7 c_parser_conditional_expression
        /home/anna/trunk/gcc/c/c-parser.c:5486
0x53bdd0 c_parser_expr_no_commas
        /home/anna/trunk/gcc/c/c-parser.c:5405
0x53c2dd c_parser_expression
        /home/anna/trunk/gcc/c/c-parser.c:7139
0x53cd44 c_parser_expression_conv
        /home/anna/trunk/gcc/c/c-parser.c:7170
0x545b46 c_parser_statement_after_labels
        /home/anna/trunk/gcc/c/c-parser.c:4599
0x543067 c_parser_compound_statement_nostart
        /home/anna/trunk/gcc/c/c-parser.c:4261
0x54387b c_parser_compound_statement
        /home/anna/trunk/gcc/c/c-parser.c:4094
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
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 20130605 (experimental) (GCC)

Reply via email to