Bug 174106

Summary: ICE with complex statement function in gfortran
Product: [Fedora] Fedora Reporter: Alexander Täschner <taschna>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-29 09:50:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Täschner 2005-11-24 16:18:10 UTC
The code listed below gives an internal compiler error while
compiling:

[taschna@localhost ~]$ cat hwhigy.f
      SUBROUTINE HWHIGY
      IMPLICIT NONE
      COMPLEX C0,Z
      DOUBLE PRECISION A

      C0(Z,A)=Z+A

      END
[taschna@localhost ~]$ gfortran -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.2 20051109 (Red Hat 4.0.2-6)
[taschna@localhost ~]$ gfortran -c hwhigy.f
hwhigy.f:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

Comment 1 Alexander Täschner 2005-11-25 07:37:50 UTC
With gfortran version 4.0.1-6 (20050729) this code compiles without error.

Comment 2 Jakub Jelinek 2005-11-29 09:50:27 UTC
Seems to be fixed recently on both gcc-4_0-branch and gcc-4_1-branch/trunk,
i.e. I can reproduce it with gcc-gfortran-4.0.2-6, I can't with
gcc-gfortran-4.0.2-8.fc4 (currently in FC4 updates testing) nor with
gcc-gfortran-4.1.0-0.2 (new rawhide compiler in the works).
So it got fixed between 9th and 25th November.