Bug 161679

Summary: gfortran segfaults with line spec
Product: [Fedora] Fedora Reporter: Patrice Dumas <patpertusus>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 4.0.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-10 20:41:53 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 Patrice Dumas 2005-06-25 14:09:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
The following code triggers a segfault with gfortran. I don't know what it means but gfortran shouldn't segfault anyway.

      SUBROUTINE MNMNOT

# 18 "/home/dumas/rpmbuild/mnmnot.F" 2
      RETURN
      END

[dumas@chapelle cernlib_work]$ gfortran -c mnmnot.f -o mnmnot.o
<built-in>: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.

Notice that it doesn't segfault when the file is renamed to .F.
[dumas@chapelle cernlib_work]$ gfortran -c mnmnot.F -o mnmnot.o
line-map.c: file "/home/dumas/rpmbuild/mnmnot.F" left but not entered



Version-Release number of selected component (if applicable):
gcc-gfortran-4.0.0-13

How reproducible:
Always

Steps to Reproduce:
1. compile the above file with .f
2.
3.
  

Actual Results:  gfortran segfaults

Expected Results:  an error message

Additional info:

Comment 2 Jakub Jelinek 2005-07-10 20:41:53 UTC
Should be fixed in gcc-4.0.1-1 in rawhide.