Bug 82073 - internal compiler error: in pop_to_marker, at tree-ssa-scopedtables.c
Summary: internal compiler error: in pop_to_marker, at tree-ssa-scopedtables.c
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks: yarpgen
  Show dependency treegraph
 
Reported: 2017-09-01 14:09 UTC by Vsevolod Livinskii
Modified: 2021-11-01 23:07 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Reproducer. (5.66 KB, text/plain)
2017-09-01 14:09 UTC, Vsevolod Livinskii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vsevolod Livinskii 2017-09-01 14:09:46 UTC
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.
Comment 1 Eric Gallager 2017-09-05 16:02:13 UTC
Could you post the output of g++ -v so we have version and target info please?
Comment 2 Vsevolod Livinskii 2017-09-05 16:29:42 UTC
(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)
Comment 3 Eric Gallager 2018-10-10 18:50:18 UTC
(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.