This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66057] New: ICE for incomplete generic statement (gfc_match_generic)
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 07 May 2015 17:19:28 +0000
- Subject: [Bug fortran/66057] New: ICE for incomplete generic statement (gfc_match_generic)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66057
Bug ID: 66057
Summary: ICE for incomplete generic statement
(gfc_match_generic)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
This code fragment with an incomplete generic statement ...
program p
type t
contains
generic :: !
end type
end
or this variation ...
program p
type t
contains
generic :: ;
end type
end
produces (with gfortran 5.1.1 on SUSE Linux 13.2, 64 bit)
f951: internal compiler error: in gfc_match_generic, at fortran/decl.c:8514
---
Other illegal characters produce the same error :
program p
type t
contains
generic :: 1
generic :: 2
generic :: .
generic :: ,
generic :: +
generic :: -
generic :: *
generic :: /
generic :: =
generic :: '
generic :: "
generic :: %
generic :: ?
generic :: (
generic :: )
!...
generic :: 1 =
generic :: 1 =>
generic :: 1 => 2
generic :: 1 => x
!...
end type
end
Kind regards.