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

--- Comment #4 from Deniz Bahadir <D.Bahadir at GMX dot de> ---
Created attachment 41043
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41043&action=edit
Non-reduced test-case which fails with -O2 and -O3.

This was the original test-case which did not fail with "-O1" but with "-O2"
and "-O3".(The original production-code, however, only failed with "-O3". I am
not sure, if I am able to provide it.)

The error:
----------

LANG=C /usr/bin/g++-6  -fpermissive -m64 -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
-O3 -DNDEBUG -fPIC -c -w testcase.orig.i -o /dev/null
testcase.orig.i: In function 'void padis::isislistener::test()':
testcase.orig.i:67462:6: internal compiler error: Segmentation fault
 void test()
      ^~~~
0xad48ef crash_signal
        ../../src/gcc/toplev.c:333
0xde8f98 generic_simplify_VIEW_CONVERT_EXPR
        /build/gcc-6-_9B9T1/gcc-6-6.2.0/build/gcc/generic-match.c:7580
0xde8f98 generic_simplify(unsigned int, tree_code, tree_node*, tree_node*)
        /build/gcc-6-_9B9T1/gcc-6-6.2.0/build/gcc/generic-match.c:9055
0x89a9cb fold_unary_loc(unsigned int, tree_code, tree_node*, tree_node*)
        ../../src/gcc/fold-const.c:7704
0x8cd81c fold_ctor_reference(tree_node*, tree_node*, unsigned long, unsigned
long, tree_node*)
        ../../src/gcc/gimple-fold.c:5508
0x8cdafa fold_array_ctor_reference
        ../../src/gcc/gimple-fold.c:5415
0x8cdafa fold_ctor_reference(tree_node*, tree_node*, unsigned long, unsigned
long, tree_node*)
        ../../src/gcc/gimple-fold.c:5533
0xc1056f fully_constant_vn_reference_p(vn_reference_s*)
        ../../src/gcc/tree-ssa-sccvn.c:1372
0xc1357b vn_reference_lookup(tree_node*, tree_node*, vn_lookup_kind,
vn_reference_s**, bool)
        ../../src/gcc/tree-ssa-sccvn.c:2261
0xc164a9 visit_reference_op_load
        ../../src/gcc/tree-ssa-sccvn.c:3362
0xc164a9 visit_use
        ../../src/gcc/tree-ssa-sccvn.c:3755
0xc184b5 process_scc
        ../../src/gcc/tree-ssa-sccvn.c:3975
0xc184b5 extract_and_process_scc_for_name
        ../../src/gcc/tree-ssa-sccvn.c:4062
0xc184b5 DFS
        ../../src/gcc/tree-ssa-sccvn.c:4114
0xc18d17 sccvn_dom_walker::before_dom_children(basic_block_def*)
        ../../src/gcc/tree-ssa-sccvn.c:4596
0x1059e02 dom_walker::walk(basic_block_def*)
        ../../src/gcc/domwalk.c:265
0xc19b02 run_scc_vn(vn_lookup_kind)
        ../../src/gcc/tree-ssa-sccvn.c:4707
0xbf2d24 execute
        ../../src/gcc/tree-ssa-pre.c:4910
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.

Reply via email to