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



             Bug #: 55197

           Summary: Use statement for omp_lib causes ICE

    Classification: Unclassified

           Product: gcc

           Version: 4.7.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: fortran

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: eh.toussa...@gmail.com





The following short program causes an ICE in (MinGW) gfortran 4.7.0.



use, intrinsic :: omp_lib, only: omp_get_num_threads

end



$ gfortran -c -fopenmp tmp.f90

tmp.f90:1:0: internal compiler error: in gfc_trans_use_stmts, at

fortran/trans-d

ecl.c:4133



Both the 'intrinsic' attribute and the 'only' clause are required to trip the

error.



$ gcc -v

Using built-in specs.

COLLECT_GCC=E:\mingw\bin\gcc.exe

COLLECT_LTO_WRAPPER=e:/mingw/bin/../libexec/gcc/mingw32/4.7.0/lto-wrapper.exe

Target: mingw32

Configured with: ../gcc-4.7.0/configure

--enable-languages=c,c++,ada,fortran,obj

c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared

--enable-libgo

mp --disable-win32-registry --enable-libstdcxx-debug

--disable-build-poststage1-

with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw

Thread model: win32

gcc version 4.7.0 (GCC)

Reply via email to