gfortran-4.2-HEAD -fopenmp  -fprofile-generate -c
/src/gfc-4.2/libgomp/testsuite/libgomp.fortran/omp_parse1.f90

omp_parse1.f90:3: internal compiler error: in expand_omp_parallel, at
omp-low.c:2396

smallish testcase:
program test_omp
implicit none
integer i,j,k,omp_get_num_threads,omp_get_thread_num
!$omp parallel
write(6,"(2(a,i3))") " OpenMP: N_threads = ", omp_get_num_threads(), &
" thread = ", omp_get_thread_num()

do i=1,j-1
!  k=i+1
!2 continue
enddo
!$omp end parallel
end


-- 
           Summary: ICE with -fopenmp  -fprofile-generate
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, openmp
          Severity: normal
          Priority: P3
         Component: gcov/profile
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aldot at gcc dot gnu dot org
 GCC build triplet: i686-linux-gnu
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27573

Reply via email to