public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55197] New: Use statement for omp_lib causes ICE
@ 2012-11-03 22:49 eh.toussaint at gmail dot com
  2012-11-03 23:28 ` [Bug fortran/55197] " burnus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: eh.toussaint at gmail dot com @ 2012-11-03 22:49 UTC (permalink / raw)
  To: gcc-bugs


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: unassigned@gcc.gnu.org
        ReportedBy: eh.toussaint@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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-16 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-03 22:49 [Bug fortran/55197] New: Use statement for omp_lib causes ICE eh.toussaint at gmail dot com
2012-11-03 23:28 ` [Bug fortran/55197] " burnus at gcc dot gnu.org
2012-12-16 14:37 ` burnus at gcc dot gnu.org
2012-12-16 14:38 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).