[Bug c++/58814] New: [4.7/4.8/4.9 Regression] ICE with volatile and attribute vector_size
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 20 13:37:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58814
Bug ID: 58814
Summary: [4.7/4.8/4.9 Regression] ICE with volatile and
attribute vector_size
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
The following valid code snippet triggers an ICE since GCC 4.7.0:
====================================================
volatile int i __attribute__((vector_size(8)));
void foo()
{
i += i;
}
====================================================
bug.cc: In function 'void foo()':
bug.cc:5:5: internal compiler error: in stabilize_expr, at cp/tree.c:3769
i += i;
^
0x6ef1fe stabilize_expr(tree_node*, tree_node**)
../../gcc/gcc/cp/tree.c:3769
0x68c9f4 cp_build_modify_expr(tree_node*, tree_code, tree_node*, int)
../../gcc/gcc/cp/typeck.c:7362
0x556885 build_new_op_1
../../gcc/gcc/cp/call.c:5438
0x556f57 build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*,
tree_node*, tree_node**, int)
../../gcc/gcc/cp/call.c:5513
0x68e09d build_x_modify_expr(unsigned int, tree_node*, tree_code, tree_node*,
int)
../../gcc/gcc/cp/typeck.c:7534
0x651220 cp_parser_assignment_expression
../../gcc/gcc/cp/parser.c:8032
0x653523 cp_parser_expression
../../gcc/gcc/cp/parser.c:8158
0x653d2e cp_parser_expression
../../gcc/gcc/cp/parser.c:8197
0x653d2e cp_parser_expression_statement
../../gcc/gcc/cp/parser.c:9488
0x648fd7 cp_parser_statement
../../gcc/gcc/cp/parser.c:9339
0x64a2c2 cp_parser_statement_seq_opt
../../gcc/gcc/cp/parser.c:9611
0x64a406 cp_parser_compound_statement
../../gcc/gcc/cp/parser.c:9565
0x65da5b cp_parser_function_body
../../gcc/gcc/cp/parser.c:18408
0x65da5b cp_parser_ctor_initializer_opt_and_function_body
../../gcc/gcc/cp/parser.c:18444
0x661e5f cp_parser_function_definition_after_declarator
../../gcc/gcc/cp/parser.c:22452
0x662c32 cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/gcc/cp/parser.c:22373
0x662c32 cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:16419
0x663e7f cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:11054
0x6477e0 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:10935
0x66e9fe cp_parser_declaration
../../gcc/gcc/cp/parser.c:10832
Please submit a full bug report, [etc.]
More information about the Gcc-bugs
mailing list