From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5669 invoked by alias); 20 Oct 2013 13:37:30 -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 5644 invoked by uid 48); 20 Oct 2013 13:37:26 -0000 From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58814] New: [4.7/4.8/4.9 Regression] ICE with volatile and attribute vector_size Date: Sun, 20 Oct 2013 13:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt at gcc dot gnu.org 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 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-10/txt/msg01409.txt.bz2 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.]