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

            Bug ID: 71704
           Summary: ICE with -fopenmp and some omp constructs
           Product: gcc
           Version: 6.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fort...@t-online.de
  Target Milestone: ---

With some "empty" openmp constructs :


$ cat z1.f90
real function f()
!$omp barrier
end

$ gfortran-6 -fopenmp -c z1.f90
f951: internal compiler error: gfc_ascii_statement(): Bad statement code



$ cat z2.f90
real function f()
!$omp parallel
!$omp end parallel
end

$ gfortran-6 -fopenmp -c z2.f90
f951: internal compiler error: gfc_ascii_statement(): Bad statement code



$ cat z3.f90
real function f()
!$omp single
!$omp end single
end

$ gfortran-6 -fopenmp -c z3.f90
f951: internal compiler error: gfc_ascii_statement(): Bad statement code



$ cat z4.f90
real function f()
!$omp critical
!$omp end critical
end

$ gfortran-6 -fopenmp -c z4.f90
f951: internal compiler error: gfc_ascii_statement(): Bad statement code


etc.

Reply via email to