https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102504
Bug ID: 102504 Summary: [12 Regression] ICE in build_outer_var_ref, at omp-low.c:746 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started between 20210808 and 20210822, in addition to pr102415 : $ cat z1.c void abort (); void f () { int r; #pragma omp scope reduction(+:r) nowait abort (); } $ gcc-12-20210926 -c z1.c -fopenmp during GIMPLE pass: omplower z1.c: In function 'f': z1.c:5:11: internal compiler error: in build_outer_var_ref, at omp-low.c:746 5 | #pragma omp scope reduction(+:r) nowait | ^~~ 0xb621b9 build_outer_var_ref ../../gcc/omp-low.c:746 0xb768ea lower_reduction_clauses ../../gcc/omp-low.c:7654 0xb687dc lower_omp_scope ../../gcc/omp-low.c:8839 0xb687dc lower_omp_1 ../../gcc/omp-low.c:14101 0xb687dc lower_omp ../../gcc/omp-low.c:14283 0xb6922d lower_omp_1 ../../gcc/omp-low.c:14073 0xb6922d lower_omp ../../gcc/omp-low.c:14283 0xb70381 execute_lower_omp ../../gcc/omp-low.c:14322 0xb70381 execute ../../gcc/omp-low.c:14370