public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58814] New: [4.7/4.8/4.9 Regression] ICE with volatile and attribute vector_size
@ 2013-10-20 13:37 reichelt at gcc dot gnu.org
  2013-10-20 13:38 ` [Bug c++/58814] " reichelt at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-10-20 13:37 UTC (permalink / raw)
  To: gcc-bugs

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.]


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-28 13:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-20 13:37 [Bug c++/58814] New: [4.7/4.8/4.9 Regression] ICE with volatile and attribute vector_size reichelt at gcc dot gnu.org
2013-10-20 13:38 ` [Bug c++/58814] " reichelt at gcc dot gnu.org
2013-10-21  9:24 ` mpolacek at gcc dot gnu.org
2013-11-19 10:22 ` rguenth at gcc dot gnu.org
2014-01-27 15:17 ` jason at gcc dot gnu.org
2014-01-28  4:31 ` jason at gcc dot gnu.org
2014-01-28 13:45 ` jason at gcc dot gnu.org
2014-01-28 13:53 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).