This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41714] [OOP] ALLOCATE SOURCE= does not properly copy the value from SOURCE
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2009 21:25:48 -0000
- Subject: [Bug fortran/41714] [OOP] ALLOCATE SOURCE= does not properly copy the value from SOURCE
- References: <bug-41714-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from janus at gcc dot gnu dot org 2009-10-16 21:25 -------
(In reply to comment #3)
> In addition to this there are two more test cases failing:
Sorry, these were fake (my local source tree was messed up). The only real
failure is class_allocate_1.f03, from which one can extract a reduced test
case:
implicit none
type t1
integer :: a
end type
type, extends(t1) :: t2
integer :: b
end type
class(t1),pointer :: cp
type(t2) :: x
allocate(cp, source = x)
end
which gives the same error at -O1 and above:
internal compiler error: in tree_annotate_all_with_location, at gimplify.c:892
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41714