https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102596
Bug ID: 102596 Summary: [11/12 Regression] ICE in gfc_omp_clause_default_ctor, at fortran/trans-openmp.c:713 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20201108 and 20201115 : (ICEs with an allocatable) $ cat z1.f90 program p integer, allocatable :: r r = 0 !$omp target parallel reduction(task, +:r) r = r + 1 !$omp end target parallel end $ gfortran-12-20211003 -c z1.f90 -fopenmp during GIMPLE pass: omplower z1.f90:5:12: 5 | r = r + 1 | ^ internal compiler error: in gfc_omp_clause_default_ctor, at fortran/trans-openmp.c:713 0x8af41b gfc_omp_clause_default_ctor(tree_node*, tree_node*, tree_node*) ../../gcc/fortran/trans-openmp.c:713 0xc1fc2e lower_rec_input_clauses ../../gcc/omp-low.c:6460 0xc239a6 lower_omp_taskreg ../../gcc/omp-low.c:12407 0xc14f21 lower_omp_1 ../../gcc/omp-low.c:14086 0xc14f21 lower_omp ../../gcc/omp-low.c:14287 0xc18a44 lower_omp_target ../../gcc/omp-low.c:12834 0xc18a44 lower_omp_1 ../../gcc/omp-low.c:14148 0xc18a44 lower_omp ../../gcc/omp-low.c:14287 0xc152e8 lower_omp_1 ../../gcc/omp-low.c:14064 0xc152e8 lower_omp ../../gcc/omp-low.c:14287 0xc153bd lower_omp_1 ../../gcc/omp-low.c:14077 0xc153bd lower_omp ../../gcc/omp-low.c:14287 0xc1c511 execute_lower_omp ../../gcc/omp-low.c:14326 0xc1c511 execute ../../gcc/omp-low.c:14374