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

            Bug ID: 78190
           Summary: ice in get_alias_type_for_stmts
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 39948
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39948&action=edit
C source code

The attached code, when compiled by gcc dated 20161102, with
compiler flag -O2, does this:

$ ../results/bin/gcc -O2 -c bug318.c
proctree.c: In function ‘tree_string’:
proctree.c:245:7: internal compiler error: Segmentation fault
0xc6f467 crash_signal
        ../../trunk/gcc/toplev.c:338
0x13aad34 vec<gimple*, va_heap, vl_embed>::operator[](unsigned int)
        ../../trunk/gcc/vec.h:732
0x13aad34 vec<gimple*, va_heap, vl_ptr>::operator[](unsigned int)
        ../../trunk/gcc/vec.h:1216
0x13aad34 get_alias_type_for_stmts
        ../../trunk/gcc/gimple-ssa-store-merging.c:941
0x13aad34 output_merged_store
        ../../trunk/gcc/gimple-ssa-store-merging.c:1129

I've have a go at reducing the code.

Reply via email to