Created attachment 42099 [details] Reproducer. The testcase is huge and weird, but it seems to be key to this ICE. Also Creduce has failed to reduce it even further. >$ g++ -std=c++11 -w -c -O2 repr.cpp during GIMPLE pass: dom repr.cpp: In function ‘void foo()’: repr.cpp:176:6: internal compiler error: in pop_to_marker, at tree-ssa-scopedtables.c:71 void foo() { ^~~ 0x104bc3e avail_exprs_stack::pop_to_marker() /home/vsevolod/workspace/gcc-dev/trunk/gcc/tree-ssa-scopedtables.c:71 0xf9cbb3 dom_opt_dom_walker::after_dom_children(basic_block_def*) /home/vsevolod/workspace/gcc-dev/trunk/gcc/tree-ssa-dom.c:1379 0x15716e7 dom_walker::walk(basic_block_def*) /home/vsevolod/workspace/gcc-dev/trunk/gcc/domwalk.c:325 0xfa0dc8 execute /home/vsevolod/workspace/gcc-dev/trunk/gcc/tree-ssa-dom.c:691 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.
Could you post the output of g++ -v so we have version and target info please?
(In reply to Eric Gallager from comment #1) > Could you post the output of g++ -v so we have version and target info > please? Revision is 251589 >$ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /gcc-dev/bin-trunk --disable-bootstrap Thread model: posix gcc version 8.0.0 20170901 (experimental) (GCC)
(In reply to Vsevolod Livinskiy from comment #2) > (In reply to Eric Gallager from comment #1) > > Could you post the output of g++ -v so we have version and target info > > please? > Revision is 251589 > > >$ g++ -v > Using built-in specs. > COLLECT_GCC=g++ > COLLECT_LTO_WRAPPER=/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper > Target: x86_64-pc-linux-gnu > Configured with: /gcc-dev/bin-trunk --disable-bootstrap > Thread model: posix > gcc version 8.0.0 20170901 (experimental) (GCC) I can't reproduce with either 8.2 or trunk revision 264045 on x86_64-apple-darwin10. Feel free to reopen if it still happens for you, although if it does, it's probably a GNU/Linux-specific issue, so the component would then be "target" instead.