This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29322] New: ICE with character optional arg
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Oct 2006 15:20:46 -0000
- Subject: [Bug fortran/29322] New: ICE with character optional arg
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat u.f90
if (isscan () /= 0) call abort
contains
integer function isscan (substr)
character(*), optional :: substr
if (.not.present(substr)) isscan = myscan ("foo", "over")
end function isscan
end
$ gfortran u.f90
u.f90: In function ?MAIN__?:
u.f90:5: internal compiler error: Segmentation fault
--
Summary: ICE with character optional arg
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29322