public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/47728] New: Assigning an object of one type to a class variable leads to an ICE
@ 2011-02-14  9:00 arjen.markus at deltares dot nl
  2011-02-14 10:09 ` [Bug fortran/47728] [OOP] ICE on invalid CLASS declaration janus at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: arjen.markus at deltares dot nl @ 2011-02-14  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Assigning an object of one type to a class variable
                    leads to an ICE
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arjen.markus@deltares.nl


The following program produces an internal compiler error:

program test_objects

   implicit none

   type, abstract :: shape
   end type

   type, extends(shape) :: rectangle
       real :: width, height
   end type

   class(shape), dimension(2) :: object

   object(1) = rectangle( 1.0, 2.0 )

end program test_objects

There is no indication as to what is wrong with the program
(as Janus, who reduced my original program to this minimal one, remarks:
there are at least two)


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

end of thread, other threads:[~2011-02-14 18:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14  9:00 [Bug fortran/47728] New: Assigning an object of one type to a class variable leads to an ICE arjen.markus at deltares dot nl
2011-02-14 10:09 ` [Bug fortran/47728] [OOP] ICE on invalid CLASS declaration janus at gcc dot gnu.org
2011-02-14 10:12 ` janus at gcc dot gnu.org
2011-02-14 10:23 ` janus at gcc dot gnu.org
2011-02-14 10:27 ` dominiq at lps dot ens.fr
2011-02-14 12:24 ` janus at gcc dot gnu.org
2011-02-14 14:06 ` janus at gcc dot gnu.org
2011-02-14 18:17 ` janus at gcc dot gnu.org
2011-02-14 18:18 ` 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).