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

            Bug ID: 81622
           Summary: [7/8 Regression] ICE on invalid altivec code with
                    ppc64{,le}
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: pthaugen at gcc dot gnu.org, wschmidt at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: ppc64-linux-gnu

Running following invalid snippet fails since GCC 7:

$ cat ice.i
void a()
{
  __builtin_vec_ld (1, 2);
}

$ /home/marxin/Programming/gcc2/objdir/gcc/xg++ -B
/home/marxin/Programming/gcc2/objdir/gcc/ ice.i -c
ice.i: In function ‘void a()’:
ice.i:3:25: internal compiler error: Segmentation fault
   __builtin_vec_ld (1, 2);
                         ^
0xeac98f crash_signal
        ../../gcc/toplev.c:338
0xa070d8 tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        ../../gcc/tree.h:3203
0xa070d8 altivec_resolve_overloaded_builtin(unsigned int, tree_node*, void*)
        ../../gcc/config/rs6000/rs6000-c.c:6468
0x902e7e finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ../../gcc/cp/semantics.c:2447
0x80e264 cp_parser_postfix_expression
        ../../gcc/cp/parser.c:7034
0x810a67 cp_parser_unary_expression
        ../../gcc/cp/parser.c:8156
0x811b3d cp_parser_cast_expression
        ../../gcc/cp/parser.c:8923
0x811c37 cp_parser_binary_expression
        ../../gcc/cp/parser.c:9024
0x812955 cp_parser_assignment_expression
        ../../gcc/cp/parser.c:9311
0x812cf2 cp_parser_expression
        ../../gcc/cp/parser.c:9480
0x81611d cp_parser_expression_statement
        ../../gcc/cp/parser.c:11048
0x815a89 cp_parser_statement
        ../../gcc/cp/parser.c:10864
0x816779 cp_parser_statement_seq_opt
        ../../gcc/cp/parser.c:11190
0x81666c cp_parser_compound_statement
        ../../gcc/cp/parser.c:11144
0x82ad37 cp_parser_function_body
        ../../gcc/cp/parser.c:21608
0x82affd cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/cp/parser.c:21646
0x8342a0 cp_parser_function_definition_after_declarator
        ../../gcc/cp/parser.c:26466
0x8340a4 cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/cp/parser.c:26378
0x82647e cp_parser_init_declarator
        ../../gcc/cp/parser.c:19337
0x81a4f9 cp_parser_simple_declaration
        ../../gcc/cp/parser.c:12951

Reply via email to