Bug 161679 - gfortran segfaults with line spec
gfortran segfaults with line spec
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
rawhide
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-25 10:09 EDT by Patrice Dumas
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.0.1-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-10 16:41:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Patrice Dumas 2005-06-25 10:09:02 EDT
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 16:41:53 EDT
Should be fixed in gcc-4.0.1-1 in rawhide.

Note You need to log in before you can comment on or make changes to this bug.