This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran 4.1.2: "internal compiler error: Segmentation fault"


On Sun, Oct 01, 2006 at 10:35:02AM -0700, Steve Kargl wrote:
>On Sat, Sep 30, 2006 at 11:14:39PM -0700, Rob wrote:
>> > On Fri, Sep 29, 2006 at 03:49:37PM -0700, Rob wrote:

>> > >I have compile GCC 4.1.2 (prerelease) on an Alpha

>> > $ cat no.f90 
>> >         MODULE MOD1
>> >         CONTAINS
>> >         SUBROUTINE SUB1(arg)
>> >         IMPLICIT NONE
>> >         CHARACTER (LEN=*), OPTIONAL :: arg
>> >         IF (PRESENT(arg)) WRITE(0,*) 'arg was ', arg
>> >         STOP
>> >         END SUBROUTINE SUB1
>> >         SUBROUTINE SUB2
>> >         CALL SUB1
>> >         END SUBROUTINE SUB2
>> >         END MODULE
>> > $ gfortran-4.2-HEAD -c no.f90
>> > no.f90: In function 'sub2':
>> > no.f90:3: internal compiler error: Segmentation
>> > fault

>Can you submit a bug report in GCC's bugzilla so that
>this doesn't get lost?

This really sounds like a dup of gcc.gnu.org/PR29284
I've pasted the above as a non-testcase as comment #4

I can file a separate PR if you think it's necessary, but the testcase
of aforementioned PR should make sure that the above isn't triggered
anymore. If you want to be certain, then i can of course add the code
snippet above as additional testcase..


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]