public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/66057] New: ICE for incomplete generic statement (gfc_match_generic)
@ 2015-05-07 17:19 gerhard.steinmetz.fortran@t-online.de
  2015-05-07 18:49 ` [Bug fortran/66057] " kargl at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-05-07 17:19 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-19 18:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-07 17:19 [Bug fortran/66057] New: ICE for incomplete generic statement (gfc_match_generic) gerhard.steinmetz.fortran@t-online.de
2015-05-07 18:49 ` [Bug fortran/66057] " kargl at gcc dot gnu.org
2015-05-18 23:10 ` kargl at gcc dot gnu.org
2015-05-18 23:27 ` kargl at gcc dot gnu.org
2015-05-19 18:20 ` kargl at gcc dot gnu.org
2015-05-19 18:22 ` kargl at gcc dot gnu.org
2015-05-19 18:32 ` kargl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).