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

            Bug ID: 66680
           Summary: ICE with openmp, a loop and a type bound procedure
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: polajnar.miha at gmail dot com
  Target Milestone: ---

The code in the attachment produces an ICE with

$ gfortran bug.f90 -fopenmp -O0
bug.f90:24:0:

     do p = 1, n
 ^
internal compiler error: in make_decl_rtl, at varasm.c:1313
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.

Using a different optimization level
gfortran bug.f90 -fopenmp -O3 
compiles fine.

Using version $ gfortran -v
gcc version 5.1.1 20150518 [gcc-5-branch revision 223286] (SUSE Linux)

Reply via email to