From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21466 invoked by alias); 5 May 2011 14:39:33 -0000 Received: (qmail 21368 invoked by uid 22791); 5 May 2011 14:39:31 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 May 2011 14:39:16 +0000 From: "wence at gmx dot li" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/48889] New: f951: internal compiler error: in gfc_is_constant_expr, at fortran/expr.c:906 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: wence at gmx dot li 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 Date: Thu, 05 May 2011 14:39:00 -0000 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: 2011-05/txt/msg00457.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48889 Summary: f951: internal compiler error: in gfc_is_constant_expr, at fortran/expr.c:906 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: wence@gmx.li Created attachment 24190 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24190 Two module files plus f90 source I'm attempting to compile fluidity (http://amcg.ese.ic.ac.uk/index.php?title=Fluidity) with gfortran 4.6.0 and have hit the above error. The problem can be reproduced with the two module files and single test.f90 attached in a tarball. Source for the module files is large, with many dependencies. If necessary I can try and reduce these to a minimal size as well. $uname -a Linux xxx 2.6.18-194.3.1.el5 #1 SMP Fri May 7 01:43:09 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux Compile output: $ gfortran -v -save-temps -O0 test.f90 Driving: gfortran -v -save-temps -O0 test.f90 -l gfortran -l m -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/home/lmitche4/Apps/gcc-4.6.0/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ./configure --prefix=/home/lmitche4/Apps/gcc-4.6.0 -C --disable-gcj --enable-languages=c,c++,fortran,objc,obj-c++ Thread model: posix gcc version 4.6.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O0' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /home/lmitche4/Apps/gcc-4.6.0/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/f951 test.f90 -quiet -dumpbase test.f90 -mtune=generic -march=x86-64 -auxbase test -O0 -version -fintrinsic-modules-path /home/lmitche4/Apps/gcc-4.6.0/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/finclude -o test.s GNU Fortran (GCC) version 4.6.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.0, GMP version 5.0.1, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran (GCC) version 4.6.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.0, GMP version 5.0.1, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 f951: internal compiler error: in gfc_is_constant_expr, at fortran/expr.c:906 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. e->symtree is NULL causing a failure of gcc_assert. I do not understand why. Cheers, Lawrence