public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/59493] New: internal compiler error: Segmentation fault on Class(*) pointer association with GCC 4.8.1
@ 2013-12-13 11:18 talebi.hossein at gmail dot com
  2013-12-13 13:04 ` [Bug fortran/59493] [OOP] ICE: Segfault on Class(*) pointer association janus at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: talebi.hossein at gmail dot com @ 2013-12-13 11:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59493
           Summary: internal compiler error: Segmentation fault on
                    Class(*) pointer association with GCC 4.8.1
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: talebi.hossein at gmail dot com

Hi there,

I get the segmentation fault on compilation of this code. This compiles with
Intel Fortran Compiler.


module mode1
   implicit none

   integer :: a=1

   type ty_mytype1
      integer :: b1=1
   end type ty_mytype1

   type, extends(ty_mytype1) :: ty_extend

      integer :: b2=2
   end type ty_extend


end module mode1


program hello
   use mode1
   implicit none

   class(ty_mytype1), allocatable,target:: cla1
   class(*), pointer :: ptr_cla1


   allocate(ty_extend :: cla1)

   ptr_cla1 => cla1
   print *, 'cla1%b1', cla1%b1

end program


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

end of thread, other threads:[~2013-12-19 13:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-13 11:18 [Bug fortran/59493] New: internal compiler error: Segmentation fault on Class(*) pointer association with GCC 4.8.1 talebi.hossein at gmail dot com
2013-12-13 13:04 ` [Bug fortran/59493] [OOP] ICE: Segfault on Class(*) pointer association janus at gcc dot gnu.org
2013-12-13 13:05 ` janus at gcc dot gnu.org
2013-12-13 13:10 ` talebi.hossein at gmail dot com
2013-12-13 13:37 ` janus at gcc dot gnu.org
2013-12-14 10:56 ` janus at gcc dot gnu.org
2013-12-14 15:48 ` janus at gcc dot gnu.org
2013-12-15  9:50 ` janus at gcc dot gnu.org
2013-12-18 12:36 ` janus at gcc dot gnu.org
2013-12-18 13:12 ` janus at gcc dot gnu.org
2013-12-18 22:01 ` janus at gcc dot gnu.org
2013-12-19 13:12 ` janus 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).