https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90385
Bug ID: 90385 Summary: [9/10 Regression] ICE: tree check: expected ssa_name, have real_cst in transform_to_exit_first_loop_alt, at tree-parloops.c:1772 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gfortran-10.0.0-alpha20190505 snapshot (r270883) ICEs when compiling gcc/testsuite/gfortran.dg/array_constructor_47.f90 w/ -O1 -ftree-parallelize-loops=2 -fno-tree-ccp -fno-tree-ch -fno-tree-copy-prop -fno-tree-forwprop -fno-tree-sink --param parloops-min-per-thread=5: % powerpc-e300c3-linux-gnu-gfortran-10.0.0-alpha20190505 -O1 -ftree-parallelize-loops=2 -fno-tree-ccp -fno-tree-ch -fno-tree-copy-prop -fno-tree-forwprop -fno-tree-sink --param parloops-min-per-thread=5 -c gcc/testsuite/gfortran.dg/array_constructor_47.f90 during GIMPLE pass: parloops gcc/testsuite/gfortran.dg/array_constructor_47.f90:13:0: 13 | if (abs (product([[sum([eleven_ones()]), thirteen], a]) - 30030._dp) > 1e-8) STOP 1 | internal compiler error: tree check: expected ssa_name, have real_cst in transform_to_exit_first_loop_alt, at tree-parloops.c:1772 0x6a3e3e tree_check_failed(tree_node const*, char const*, int, char const*, ...) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20190505/work/gcc-10-20190505/gcc/tree.c:9900 0x651f73 tree_check(tree_node*, char const*, int, char const*, tree_code) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20190505/work/gcc-10-20190505/gcc/tree.h:3180 0x651f73 transform_to_exit_first_loop_alt /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20190505/work/gcc-10-20190505/gcc/tree-parloops.c:1772 0xe3fdc6 try_transform_to_exit_first_loop_alt /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20190505/work/gcc-10-20190505/gcc/tree-parloops.c:1839 0xe3fdc6 gen_parallel_loop /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20190505/work/gcc-10-20190505/gcc/tree-parloops.c:2422 0xe4121c parallelize_loops /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20190505/work/gcc-10-20190505/gcc/tree-parloops.c:3424 0xe42858 execute /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20190505/work/gcc-10-20190505/gcc/tree-parloops.c:3506 0xe42858 execute /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-10.0.0_alpha20190505/work/gcc-10-20190505/gcc/tree-parloops.c:3485 (While my target here is powerpc, the ICE is not target-specific.)