Bug 37833 - internal compiler error: in gfc_conv_function_call, at fortran/trans-expr.c:1108
Summary: internal compiler error: in gfc_conv_function_call, at fortran/trans-expr.c:1108
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.0.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-15 07:11 UTC by Markus Airila
Modified: 2008-11-05 05:25 UTC (History)
2 users (show)

See Also:
Host: i486-linux-gnu
Target: i486-linux-gnu
Build: i486-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Preprocessed source file (10.81 KB, text/x-fortran)
2008-10-15 07:27 UTC, Markus Airila
Details
Original source file (10.83 KB, application/octet-stream)
2008-10-15 07:28 UTC, Markus Airila
Details
Source file containing modules (605 bytes, application/octet-stream)
2008-10-15 07:29 UTC, Markus Airila
Details
Source file containing modules (1.05 KB, application/octet-stream)
2008-10-15 07:29 UTC, Markus Airila
Details
Source file containing modules (477 bytes, application/octet-stream)
2008-10-15 07:30 UTC, Markus Airila
Details
Source file containing modules (877 bytes, application/octet-stream)
2008-10-15 07:30 UTC, Markus Airila
Details
Source file containing modules (503 bytes, application/octet-stream)
2008-10-15 07:32 UTC, Markus Airila
Details
Source file containing modules (4.38 KB, application/octet-stream)
2008-10-15 07:33 UTC, Markus Airila
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Airila 2008-10-15 07:11:47 UTC
> 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)
Comment 1 Markus Airila 2008-10-15 07:27:46 UTC
Created attachment 16496 [details]
Preprocessed source file
Comment 2 Markus Airila 2008-10-15 07:28:42 UTC
Created attachment 16497 [details]
Original source file
Comment 3 Markus Airila 2008-10-15 07:29:27 UTC
Created attachment 16498 [details]
Source file containing modules
Comment 4 Markus Airila 2008-10-15 07:29:48 UTC
Created attachment 16499 [details]
Source file containing modules
Comment 5 Markus Airila 2008-10-15 07:30:16 UTC
Created attachment 16500 [details]
Source file containing modules
Comment 6 Markus Airila 2008-10-15 07:30:46 UTC
Created attachment 16501 [details]
Source file containing modules
Comment 7 Markus Airila 2008-10-15 07:32:27 UTC
Created attachment 16502 [details]
Source file containing modules
Comment 8 Markus Airila 2008-10-15 07:33:05 UTC
Created attachment 16503 [details]
Source file containing modules
Comment 9 Tobias Burnus 2008-10-15 09:22:52 UTC
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
Comment 10 kargls 2008-11-05 03:50:13 UTC
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.
Comment 11 Markus Airila 2008-11-05 04:46:23 UTC
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
Comment 12 Tobias Grosser 2008-11-05 05:05:56 UTC
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

Comment 13 Tobias Grosser 2008-11-05 05:25:13 UTC
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

Comment 14 kargls 2008-11-05 05:25:23 UTC
Closing the bug as WONTFIX.  The 4.0.x branch is long dead.
Long live 4.4+
Comment 15 Tobias Grosser 2008-11-08 19:46:33 UTC
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.

Comment 16 Tobias Grosser 2008-11-08 19:50:46 UTC
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.