From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3346 invoked by alias); 3 Nov 2012 22:49:02 -0000 Received: (qmail 3164 invoked by uid 48); 3 Nov 2012 22:48:42 -0000 From: "eh.toussaint at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55197] New: Use statement for omp_lib causes ICE Date: Sat, 03 Nov 2012 22:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eh.toussaint at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00234.txt.bz2 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)