public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54435] New: ICE with SELECT TYPE on a non-CLASS object
@ 2012-08-31  8:47 burnus at gcc dot gnu.org
  2012-08-31  8:48 ` [Bug fortran/54435] " burnus at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-08-31  8:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54435

             Bug #: 54435
           Summary: ICE with SELECT TYPE on a non-CLASS object
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


It crashes in match.c's gfc_match_select_type:

  class_array = expr1->expr_type == EXPR_VARIABLE
                  && expr1->ts.type != BT_UNKNOWN
                  && CLASS_DATA (expr1)
                  ...

as for obvious reasons, a non-BT_CLASS doesn't have CLASS_DATA.


Test case, reported by xarthisius on #gfortran:

subroutine foo(x)
!  type(*) :: x
  integer :: x
  select type (x)
  end select type
end


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

end of thread, other threads:[~2012-09-10 13:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-31  8:47 [Bug fortran/54435] New: ICE with SELECT TYPE on a non-CLASS object burnus at gcc dot gnu.org
2012-08-31  8:48 ` [Bug fortran/54435] " burnus at gcc dot gnu.org
2012-08-31  8:52 ` burnus at gcc dot gnu.org
2012-08-31  9:19 ` [Bug fortran/54435] [4.7/4.8 Regression] " burnus at gcc dot gnu.org
2012-08-31 13:15 ` janus at gcc dot gnu.org
2012-08-31 14:03 ` janus at gcc dot gnu.org
2012-08-31 14:58 ` janus at gcc dot gnu.org
2012-09-01 13:26 ` janus at gcc dot gnu.org
2012-09-10 12:11 ` janus at gcc dot gnu.org
2012-09-10 12:14 ` janus at gcc dot gnu.org
2012-09-10 13:10 ` paul.richard.thomas at gmail dot com

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).