https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69193

            Bug ID: 69193
           Summary: ICE: openmp + nested function  + VLA
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: uecker at eecs dot berkeley.edu
  Target Milestone: ---

Created attachment 37269
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37269&action=edit
test case

Trying to get openmp to make a private copy of an array passed
to a function, I tried to use a nested function which produces
the following ICE (recent gcc build from git):


$ ~/src/gcc_build/gcc/xgcc -fopenmp -B ~/src/gcc_build/gcc/ test.c 
test.c: In function ‘md_parallel_loop_r’:
test.c:19:11: internal compiler error: in lower_rec_input_clauses, at
omp-low.c:4756
   #pragma omp parallel for firstprivate(pos)
           ^~~

0x9fb368 lower_rec_input_clauses
        ../../gcc/gcc/omp-low.c:4756
0x9fd62e lower_omp_taskreg
        ../../gcc/gcc/omp-low.c:14972
0x9ef4c6 lower_omp_1
        ../../gcc/gcc/omp-low.c:16345
0x9ef4c6 lower_omp
        ../../gcc/gcc/omp-low.c:16484
0x9ef15d lower_omp_1
        ../../gcc/gcc/omp-low.c:16337
0x9ef15d lower_omp
        ../../gcc/gcc/omp-low.c:16484
0x9f6489 execute_lower_omp
        ../../gcc/gcc/omp-low.c:16522
0x9f6489 execute
        ../../gcc/gcc/omp-low.c:16559
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to