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

            Bug ID: 79986
           Summary: [6/7 Regression][CHKP] ICE in fold_convert_loc with a
                    flexiable array
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: msebor at gcc dot gnu.org
  Target Milestone: ---

Following test-case ICEs since r231665:

$ g++ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ext/flexary11.C
-fcheck-pointer-bounds -mmpx
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ext/flexary11.C: In function
‘void f.chkp()’:
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ext/flexary11.C:19:1:
internal compiler error: Segmentation fault
 }
 ^
0xdf216f crash_signal
        ../../gcc/toplev.c:337
0xb0b540 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        ../../gcc/tree.h:3177
0xb0b540 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.c:2215
0xb11d22 fold_build_pointer_plus_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.c:14408
0xeb18dd chkp_process_stmt
        ../../gcc/tree-chkp.c:4093
0xeb2863 chkp_instrument_function
        ../../gcc/tree-chkp.c:4316
0xeb2863 chkp_execute
        ../../gcc/tree-chkp.c:4529
0xeb2863 execute
        ../../gcc/tree-chkp.c:4588

Martin can you please help?

Reply via email to