https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63336

jtamagnan at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jtamagnan at gmail dot com

--- Comment #7 from jtamagnan at gmail dot com ---
I had the same error with the following code:

> class test{
> public:
>   int arr[2][2][2];
> 
>   test()
>   {
>     arr[0:2][0:2][0:2] = 1;
>   }
> };
> 
> 
> int main(){
>   test t;
>   return 1;
> }

And compiling with

> gcc cilk_test.cc -std-gnu++11 -fcilkplus

with gcc version: 

> gcc (Debian 5.2.1-21) 5.2.1 20151003

The full output from the compiler was:

> cilk_test.cc: In constructor ‘test::test()’:
> cilk_test.cc:8:3: internal compiler error: in find_rank, at 
> c-family/array-notation-common.c:244
>    }
>    ^
> 0x7567cc find_rank(unsigned int, tree_node*, tree_node*, bool, unsigned long*)
>         ../../src/gcc/c-family/array-notation-common.c:244
> 0x6fd22b expand_an_in_modify_expr
>         ../../src/gcc/cp/cp-array-notation.c:576
> 0x6fe677 expand_array_notation_exprs(tree_node*)
>         ../../src/gcc/cp/cp-array-notation.c:1172
> 0x6fe4f8 expand_array_notation_exprs(tree_node*)
>         ../../src/gcc/cp/cp-array-notation.c:1252
> 0x6fe4f8 expand_array_notation_exprs(tree_node*)
>         ../../src/gcc/cp/cp-array-notation.c:1252
> 0x6fe4f8 expand_array_notation_exprs(tree_node*)
>         ../../src/gcc/cp/cp-array-notation.c:1252
> 0x6fe6c3 expand_array_notation_exprs(tree_node*)
>         ../../src/gcc/cp/cp-array-notation.c:1185
> 0x6f97af cp_genericize(tree_node*)
>         ../../src/gcc/cp/cp-gimplify.c:1406
> 0x61652a finish_function(int)
>         ../../src/gcc/cp/decl.c:14328
> 0x6890e5 cp_parser_function_definition_after_declarator
>         ../../src/gcc/cp/parser.c:23528
> 0x690e1c cp_parser_late_parsing_for_member
>         ../../src/gcc/cp/parser.c:24205
> 0x6703fd cp_parser_class_specifier_1
>         ../../src/gcc/cp/parser.c:20082
> 0x6703fd cp_parser_class_specifier
>         ../../src/gcc/cp/parser.c:20108
> 0x6703fd cp_parser_type_specifier
>         ../../src/gcc/cp/parser.c:14727
> 0x6851e7 cp_parser_decl_specifier_seq
>         ../../src/gcc/cp/parser.c:11958
> 0x68abf1 cp_parser_simple_declaration
>         ../../src/gcc/cp/parser.c:11535
> 0x673023 cp_parser_block_declaration
>         ../../src/gcc/cp/parser.c:11482
> 0x66d1d9 cp_parser_declaration
>         ../../src/gcc/cp/parser.c:11379
> 0x693f4a cp_parser_declaration_seq_opt
>         ../../src/gcc/cp/parser.c:11265
> 0x69425f cp_parser_translation_unit
>         ../../src/gcc/cp/parser.c:4100
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.

Reply via email to