> gfortran -ffree-form -fdefault-real-8 -D SEQ -c output.F90 -save-temps output.F90: In function ‘outp’: output.F90:1: internal compiler error: in gfc_conv_function_call, at fortran/trans-expr.c:1108 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>. > gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=pentium4 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Created attachment 16496 [details] Preprocessed source file
Created attachment 16497 [details] Original source file
Created attachment 16498 [details] Source file containing modules
Created attachment 16499 [details] Source file containing modules
Created attachment 16500 [details] Source file containing modules
Created attachment 16501 [details] Source file containing modules
Created attachment 16502 [details] Source file containing modules
Created attachment 16503 [details] Source file containing modules
Thanks for the bugreport, however, it works here with GCC 4.4, 4.3, 4.2 and 4.1. Your GCC -- "gcc version 4.0.3" -- is ancient. GCC 4.0 was branched on Feb 25 2005 while some fixes still went into the 4.0 branch, most work went into GCC 4.1 which was then branched on Nov 18 2005, which is also already 3 years ago. GCC 4.0 was the first GCC version which shipped gfortran and gfortran had lots of bugs back then. GCC 4.1.x is the oldest GCC one should use for gfortran. However, gfortran 4.2 and 4.3 are much stabler. I would suggest to update to 4.3.2 (latest stable release) or to 4.4.0 (latest developer release). If needed be 4.2.x and maybe also 4.1.x can be used, but 4.0 is definitely too buggy. Nightly builds of gfortran are available at: http://gcc.gnu.org/wiki/GFortranBinaries
Markus, Thanks for the bug report. Tobias has stated that your code compiles with 4.1 or newer. I'll note that 4.1.x has reached end-of-life and no additional releases are planned. I think 4.2.x may also have reached EOL, and even if it hasn't reach that state there are unfortunately too few gfortran developers to support 4.2.x. Can you test your code against a 4.2.x or newer compiler? You can get a bleeding gfortran from the gfortran wiki.
Subject: RE: internal compiler error: in gfc_conv_function_call, at fortran/trans-expr.c:1108 kargl at gcc dot gnu dot org [gcc-bugzilla@gcc.gnu.org]: > Thanks for the bug report. Tobias has stated that your code > compiles with 4.1 or newer. I'll note that 4.1.x has reached > end-of-life and no additional releases are planned. I think > 4.2.x may also have reached EOL, and even if it hasn't reach > that state there are unfortunately too few gfortran developers > to support 4.2.x. > > Can you test your code against a 4.2.x or newer compiler? Thanks, I hadn't noted that my old Ubuntu did not upgrade to the latest gcc. I can compile the code with 4.2.4. Markus
Subject: Bug 37833 Author: grosser Date: Wed Nov 5 05:04:29 2008 New Revision: 141599 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141599 Log: 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> PR middle-end/37833 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR. Modified: trunk/ChangeLog trunk/gcc/ChangeLog trunk/gcc/graphite.c
Subject: Bug 37833 Author: grosser Date: Wed Nov 5 05:23:46 2008 New Revision: 141600 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141600 Log: 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> PR middle-end/37833 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR. Modified: branches/graphite/gcc/ChangeLog.graphite branches/graphite/gcc/graphite.c
Closing the bug as WONTFIX. The 4.0.x branch is long dead. Long live 4.4+
Subject: Bug 37833 Author: grosser Revision: 141599 Modified property: svn:log Modified: svn:log at Sat Nov 8 19:46:18 2008 ------------------------------------------------------------------------------ --- svn:log (original) +++ svn:log Sat Nov 8 19:46:18 2008 @@ -1,5 +1,5 @@ 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> - PR middle-end/37833 + PR middle-end/37883 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
Subject: Bug 37833 Author: grosser Revision: 141600 Modified property: svn:log Modified: svn:log at Sat Nov 8 19:50:32 2008 ------------------------------------------------------------------------------ --- svn:log (original) +++ svn:log Sat Nov 8 19:50:32 2008 @@ -1,5 +1,5 @@ 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> - PR middle-end/37833 + PR middle-end/37883 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.